9
« on: February 03, 2022, 09:17:35 am »
I have not made any changes to the pqgrid.js file.
I'm not sure whether you need to see the entire page or not. It is an MVC project, written in C# on the backend.
I am using the script from one of your demos for the toolbar button.
items: [
{
type: 'select',
label: 'Format: ',
attr: 'id="export_format"',
options: [{ xlsx: 'Excel', csv: 'Csv', htm: 'Html', json: 'Json' }]
},
{
type: 'button',
label: "Export",
icon: 'ui-icon-arrowthickstop-1-s',
listener: function () {
var format = $("#export_format").val(),
blob = this.exportData({
format: format,
nopqdata: true, //applicable for JSON export.
render: true
});
if (typeof blob === "string") {
blob = new Blob([blob]);
}
saveAs(blob, "pqGrid." + format);
}
},