{ type: 'button', label: "Export", icon: "ui-icon-arrowthickstop-1-s", listener: function () { //filter the selected rows. this.filter({ oper: 'replace', data: [{ dataIndx: 'Selected', value: true, condition: 'equal' }] }) Blob = this.exportData({ format: $("#export_format").val(), zip: $("#export_zip").prop("checked"), render: true }); //reset the filter. this.filter({ oper: 'replace', data: [] }) if (typeof blob === "string") { blob = new Blob([blob]); } saveAs(blob, "RollManager." + format); } }