Search
3677 results 951-960
Forum
- 28th Apr 2018help for : write search criteria text as pdf export file's messageTop textfunction () { var table = $('#example').DataTable(); return 'Search: ' + table.search(); }, excellent solve.Thank you kthorngren.
- 28th Mar 2018Syntax error, unrecognized expression: 10/20/21 while exporting excel or pdfThanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here. Allan
- 21st Feb 2018When i generate pdf throud datatable or new line code is not working. what can i do?Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here. Colin
- 12th Feb 2018Prevent a column from ever being exported to CSV, PDF, etc?I found the solution here: https://datatables.net/forums/discussion/29910/prevent-export-of-a-column-with-buttons The code would be, for example: { extend: 'csv', className: 'btn btn-outline-primary', exportOptions: { columns: ':visible :not(:last-child)' } }, Or, even better, put a class or ID to the column that shouldn't be exported: in the view: <th class="js-not-exportable">Actions</th> in the code: { extend: 'csv', className: 'btn btn-outline-primary', exportOptions: { columns: ':visible :not(.js-not-exportable)' } },
- 10th Nov 2017Better looking pdf titlecustomize option of the pdfHtml5 type is how you
- 7th Nov 2017PDF alignmentThere are a number of discussions on this topic already if you search the forum. For example: https://datatables.net//forums/discussion/comment/119972/#Comment_119972 https://datatables.net//forums/discussion/comment/109471/#Comment_109471 Allan
- 31st Aug 2017Using jQuery Datatable plugin in salesforce datatable for downloading CSV or Pdf is not workingNo he meant, sDom: '<"top"Bflp>rt<"bottom"i><"clear">' for instance if you want the buttons on top of the table.
- 11th Apr 2017pdf make document on https sitelooks like the problem was down to the certificate on the site. this has since been updated ;-)
- 22nd Dec 2016I will like to add page numbers when i export a pdf ... I just cant get it rightPut this in customize will work for page numbers: doc['footer']=(function(page, pages) { return { columns: [ 'Left part of footer', { alignment: 'right', text: [ { text: page.toString(), italics: true }, ' of ', { text: pages.toString(), italics: true } ] } ], margin: [10, 0] } });
- 5th Dec 2016solved : pdf and excel buttons not showing up anymoreugg never mind and thanks. i was inspecting the page in chrome, and i guess it uses user-agent to hide those buttons