javascript - Extjs 3.4 reload grid after remove records -
in extjs 3.4 removing records jsonstore
using remove()
method. after save pending changes calling save()
method. in db delete executed, records removed in front-end see records removed.
gridstore.remove(checkcolumn.getselections()); gridstore.save(); //calling server.
after save()
grid not reloaded.
how can reload grid after save?
after performing .remove()
record should removed grid automatically. -- if want reload store after save add save
listener
store , fire .load()
:
listeners: { save: function(store, batch, data) { store.load(); } }
http://docs.sencha.com/extjs/3.4.0/#!/api/ext.data.store-event-save
Comments
Post a Comment