Search
43674 results 6581-6590
Forum
- 30th May 2020How to add additional table rows in print view for each single page? A screenshot givenYou will need customization and use the export options: https://datatables.net/reference/button/excelHtml5#Customisation https://datatables.net/reference/api/buttons.exportData() https://datatables.net/extensions/buttons/examples/html5/columns.html If you take a look at this thread you would need "customizeData" to add further rows to print / export. https://datatables.net/forums/discussion/comment/147595/#Comment_147595 It is described here in the docs: Something like this could be the structure of it: exportOptions: { columns: function(column, data, node) { if (column > 17) { //no export of columns > 17 return false; } return true; }, modifier: { selected: null }, //export all rows not only the selected ones format: { body: function ( data, row, column, node ) { ... do something return data; }, header: function ( data, column ) { ... do something return data; }, footer: function ( data, column ) { ... do something return data; } }, customizeData: function (data) { ... manipulate the data object } }
- 23rd May 2020My search input is at the middle of the table. How can it make it at the end of the table.Placement of DT elements is controlled by the dom options: https://datatables.net/reference/option/dom Otherwise, use your browser's inspect tool to see what styling is applied and amend or override it to suit your needs.
- 21st May 2020How to hide one or more data columns in data table?Use columns.visible, column().visible() or the column visibility button depending on when and how you want to hide the columns. Kevin
- 18th May 2020Force search to rescan table rows when html edits are made using JS/JQueryFound the answer: https://datatables.net/reference/api/rows().invalidate()
- 16th May 2020Datatable shows the table contents but also shows "No data available in table"Going to need a bit more information than an empty post to be able to help I'm afraid. If you could link to a test case showing the issue, as indicated in the template text that would be great. Thanks, Allan
- 4th May 2020I have to order a table, but the numbers are coming in string and not int?Typically Datatables will take care of this for you through its type detection operation. Generally when the sorting behavior is not as expected there is otehr types of data in the column. Do you have null or some other type in the data? Can you provide a link to your page or a test case replicating the issue so we can take a look? If not maybe you can capture a debugger image for the developers to look at. https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case Kevin
- 2nd May 2020DataTable render table: find string and replaceHi Kevin, Thanks a lot regards
- 2nd May 2020Table in WordPress admin is not showing correctlyYou'll need to ask WordPress support how you can include jQuery on both client facing pages and the admin pages. Allan
- 30th Apr 2020Bug? Scrolling on the second column onwards with a Mac would cause the table rows to be misalignedThanks for reporting. This has actually been reported before (DD-1425 for my reference) - and we'll report back here when there's an update. Colin
- 2nd Apr 2020How i set data-attributes in rows of table?Use either createdRow or, if the data changes, rowCallback to set the attributes. Kevin