Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 21, 2008 09:18
open dhtmlx forum
Grid value changed - need a flag

I have a grid with loaded data. It is possible that user can make some changes anywhere within grid or add additional row, etc. Is it possible to compare grid data before changes-by-user with same grid data after changes-by-user and get sort of Boolean flag in case of any value is changed?

Thanks.
Answer posted by Support on Nov 21, 2008 10:16
Grid supports
    grid.getChangedRows()
Which will return IDs of rows, in which data was changed. 

Also you can use grid serialization, the setSerializationLevel method , allows to configure it in such way, that serialization will contain only changed rows.