dhtmlxgrid is row changed

Hi,

how can i detect if a row inside the grid was updated , inserted or deleted?

(not by using on edit cell event).

Please advice,
Thanks.

i’m using mygrid.getChangedRows() for the inserted and updated rows,

but how can i detect if rows were deleted?

also, how can u undo the delete of a row (befor it is sent to the server, when it is only shown in the delted state)?

Thanks.

but how can i detect if rows were deleted?
You can use “onBeforeRowDeleted” or “onAfterRowDeleted” event of the Grid
docs.dhtmlx.com/doku.php?id=dhtm … rowdeleted

how can u undo the delete of a row
dhtmlxGrid doesn’t have such functionality. But you can use “onBeforeUpdate” event of DataProcessor and block request send if row is deleted docs.dhtmlx.com/doku.php?id=dhtm … foreupdate