PDA

View Full Version : get the values of editable records in the grid



kamalakarreddy vancha
1 Oct 2013, 4:09 AM
Hi..
i created one grid, which is editable..
i am editing the records in the grid also...
but i need vlues of records only which are edited in the grid to submit to the server...
please give me the solution...

Thanks
Kamalakar

Farish
1 Oct 2013, 4:17 AM
you can use the following to get the edited records:


var editedRecords = grid.getStore().getUpdatedRecords();

likewise, you can get deleted records with getRemovedRecords() and new records with getNewRecords() methods.

Also, you dont need to get the records at all. When you call store.sync(), the store's proxy will automatically communicate with the backend to send any new, modified or deleted records.