View Full Version : Ext.grid.RowEditor autosave

18 Jul 2012, 1:41 AM
Hey guys,

So I'm using the roweditor plugin which is excellent. I'm just wondering if it's possible to have a function that works like the autocancel, but instead it saves? So you click a row and edit whatever you want and when you click off it it will automatically save the changes?


18 Jul 2012, 2:20 AM
you can set autoSync: true on your store which is bound to this grid. So when you press the Update button or enter, it will be saved automatically.

18 Jul 2012, 2:37 AM
It already saves automatically when I click update or enter. What I want it to do is automatically save when I click another row. So I'm in row A and I make changes then I click on row B and I want the changes that were made to A to be saved without having me to click update or enter.

18 Jul 2012, 2:40 AM
you can try using the edit event of the grid/roweditor:

grid.on('edit', function(editor, e)
// commit the changes right after editing finished