PDA

View Full Version : data.Store.getModifiedRecords().length returns 0 in editor grid



Temujin
23 Jul 2007, 2:45 AM
I have an editor grid with commit changes button in its toolbar. When I make the changes and click to commit, i alert the modified records length and it is always 0! Here's the code:



myDataStore.on("update", function(ds, record, opt){
if(opt == "commit"){
var records = ds.getModifiedRecords();
alert(records.length);
}
});


Does anyone know a solution ?

jsakalos
23 Jul 2007, 4:04 PM
Isn't update event fired after the commit? I that case the modification flags would be already reset.