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 ?
myDataStore.on("update", function(ds, record, opt){
if(opt == "commit"){
var records = ds.getModifiedRecords();
alert(records.length);
}
});
Does anyone know a solution ?