Author Topic: How to get updated rows which cells are edited or modified  (Read 2781 times)

CrazyDev

  • Newbie
  • *
  • Posts: 3
    • View Profile
How to get updated rows which cells are edited or modified
« 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.




paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to get updated rows which cells are edited or modified
« Reply #1 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