Thank you very much for your reply!I am a front end novice, did it your way, but still not right, request guidance.
// 导出
$('#Export').on('click', function () {
var grid = $("#gridtable").pqGrid('instance');
//alert(JSON.stringify(grid));
//now call grid method.
gridlistener();
error:
TypeError: grid.listener is not a function
toolbar: {
items: [
{
type: 'button',
label: "Export to Excel",
icon: 'ui-icon-arrowthickstop-1-s',
listener: function () {
var blob = this.exportData({
//url: "/pro/demos/exportData",
format: 'xlsx',
render: true,
type: 'blob'
});
saveAs(blob, "销售跟踪表.xlsx");
}
}]
},