Hello Swapnil,
You can export specific rows from the grid.
You need to push the row’s data in an array and pass this array to the exportData method as the “rows” parameter.
Here is an example:
let rowId;
let rowData;
let arr = [];
for (let i = 3; i <= 9; i+=1) {
rowId = $(‘#grid’).jqxGrid(‘getrowid’, i);
rowData = $(‘#grid’).jqxGrid(‘getrowdatabyid’, rowId);
arr.push(rowData);
}
$(“#jsonExport”).click(function () {
$(“#grid”).jqxGrid(‘exportdata’, ‘json’, ‘jqxGrid’, true, arr);
});
This will export the data from the 4th to the 10th row of the grid.
Best Regards,
Martin
jQWidgets Team
http://www.jqwidgets.com/