If you add a model programmatically to your grid datasource - for example using the add()-method - set the corresponding row to edit mode and cancel the edit without changing anything, the model will be deleted.
This is the kind of behaviour you'd expect if you add an empty row to the grid and then cancel the edit without entering any information.
See this fiddle: http://jsfiddle.net/MM5Ke/3/
To reproduce, click the edit button, then the update button. The row will disappear.
There's also an uncaught TypeError.
If this is to be intended behaviour, errors should be dealt with and the behaviour should be better documented.
This is the kind of behaviour you'd expect if you add an empty row to the grid and then cancel the edit without entering any information.
See this fiddle: http://jsfiddle.net/MM5Ke/3/
To reproduce, click the edit button, then the update button. The row will disappear.
There's also an uncaught TypeError.
If this is to be intended behaviour, errors should be dealt with and the behaviour should be better documented.