HI,
Thanks for correcting my mistake.
Now there is no error in console.
Now my code looks like :
toolbar: {
items: [{
type: 'button',
label: "Export",
icon: 'ui-icon-arrowthickstop-1-s',
listener: function () {
//filter the selected rows.
this.filter({
mode: 'AND',
oper: 'replace',
rules: [{dataIndx: 'state', condition: 'equal', value: true}]
});
var format = 'xlsx',
blob = this.exportData({
format: format
render: true
});
if(typeof blob === "string"){
blob = new Blob([blob]);
}
saveAs(blob, "pqGrid."+ format );
}
}
]
}
But still when i click on export, it downloads all the data from grid not the selected row.
Also it hits the server URL to get data. Although I've not used URL parameter in exportData() method. Why it is going to server and why there is all rows in exported excel instead of selected ones.
Please help me in this.
Many thanks in advance.