View Full Version : synchronize grideditor/store with db

17 Feb 2011, 8:52 AM
I've a grideditor and a store with reader and writer
It works fine except for two things :
- when adding new results, all works as expected, however when trying to update the cell after that, this causes another insert (because the store didn't get the cell id synchronized with db).
- when removing rows from store, and then call commitChanges() (save button), all deleted rows are showing !

I thought the simplest way to resolve both theses issues is refreshing the store after every insert, update or delete

So I tried this :


but this doesn't work, the ajax request is done, but content isn't replaced
also this doesn't resolve the second issue because commitChanges restaure removed cells !

18 Feb 2011, 2:10 AM
after somes searchs I resolved the issue of removing rows
it was caused by save() method wich was receiving an error message from server and then was invaliditing changes to the grid

however I still have my issue with updating the grid when a row has been inserted and have to be edited after that

22 Feb 2011, 1:05 AM
any idea on how to refresh the grid in order to refresh ids of newly inserted rows ?