ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: CrazyDev on September 16, 2017, 09:52:26 am

Title: How to get updated rows which cells are edited or modified
Post by: CrazyDev on September 16, 2017, 09:52:26 am
My situation on my page there is a paramquery grid and one save button. now when i click on save button i want to know how many rows are affected or modified from the grid. that rows only save in database.

As i have large number of data in grid.

Please give me any suggestion or solution for it.

i tried below property but there is no luck.

var obj = $("#grid_array").pqGrid("getEditCellData");
var obj = $("#grid_array").pqGrid("getEditCell");

but i get null on it. I call above in my button onclick method.



Title: Re: How to get updated rows which cells are edited or modified
Post by: paramvir on September 16, 2017, 10:13:35 am
updated rows are obtained by getChanges method: it returns addList, updateList and deleteList arrays.

https://paramquery.com/api#method-getChanges

https://paramquery.com/demos/editing_batch