View Full Version : RowEditor doesn't allow saving of default record?

10 Mar 2011, 12:08 PM
I'm trying out the Grid with RowEditor (http://dev.sencha.com/deploy/dev/examples/grid/row-editor.html), and have found that after inserting a new record into the grid (i.e. after the user clicks 'Add'), that if the user clicks on Save (without making any changes), the record does not get saved.

Upon closer review it appears that in RowEditor (stopEditing), the code is checking that changes have been made to the record before the 'afterEdit' event is fired. (I'm using the 'afterEdit' event to signal that the record should be persisted).

The ramifications of this is that the user cannot save the default record, they always need to make a change. Note that I don't persist the record when the user first clicks 'Add', I would like to wait until 'Save' is selected.