Hi loridale27,
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.
Code example
Set the exportSettings property.
$(“#dataTable”).jqxDataTable({exportSettings: { columnsHeader: true, hiddenColumns: false, serverURL: null, characterSet: null, recordsInView: true, fileName: “jqxDataTable”}});
Let me know what you think!
Please, do not hesitate to contact us if you have any additional questions.
Best Regards,
Yavor Dashev
jQWidgets team
https://www.jqwidgets.com