SISINDOTEK

I.T Solution | I.T Training | I.T Integration System

ExtJS 4 Reload Grid in save button

me.getForm().submit({
waitMsg:"Tunggu",
success: function(){
Ext.Msg.alert(‘Tersimpan’,’Sudah tersimpan’);
me.getForm().reset();
Ext.getCmp(‘griddept’).store.load();
},
failure: function(){
Ext.Msg.alert(‘Gagal’,’Batal Simpan’);
}
});

the magic line for reload is in …..

Ext.getCmp(‘griddept’).store.load();

griddept is the ‘id’ property of your grid

by

SISINDOTEK – IT Training & Solution Provider
Jl. Sukasenang VI-6B Bandung – Jawa Barat 40124
Tel. 022-71242266 , SMS. 0812.8733.1966
info , YM. sisindotek
www.sisindotek.com , facebook.com/sisindotek , twitter.com/sisindotek

Single Post Navigation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: