I am printing from a jqxDataGrid in various formats, but specifically when printing to PDF, is there a way to add additional content to the document, like a header or title? And is there a way to customize the name of the output file prior to the export so the name would not need to be changed (ie: currently it is exporting as jqxDataTable.pdf and I’d like to change to something more descriptive such as “Members.pdf”).
Unfortunately the jqxDataGrid doesn’t support adding a header or title when its exported.
For your other question you can use the exportSettings property used by jqxDataTable when exportData is called.
List of parameters:
columnsHeader – determines whether to export the column’s header.
hiddenColumns – determines whether to export the hidden columns.
serverURL – determines the URL of the save-file.php.
characterSet – determines the char set.
recordsInView – determines whether to export all records or to take also the filtering and sorting into account.
fileName – determines the file’s name. Set this to null if you want to export the data to a local variable.