I have grid with store and i add the record to the store and data being added to the store gets reflected on the grid.but after refresh it vanishes.
here is my code for inserting the record
handler: function() {
grid.getStore().insert(
0,
new ds_model({
id:0,
name:'',
dob:''
})
);
grid.startEditing(0,0);
grid.store.commitChanges();
}
})
EDIT:
var store = new Ext.data.Store({
data: [
[ 11849,'ABC','29/03/90'],
[ 11456,'CDE','17/03/90'],
[ 11344,'EFG','17/07/90'],
[ 11343,'IJK','Trainee','02/06/90'],
...
You need to end your editing also otherwise there are no changes the store can commit. use firebug to check, that your store is saving. You also may use autosave: TRUE to spare the commit