ExtJs Gridpanel store refresh

MNR picture MNR · Apr 28, 2011 · Viewed 111.5k times · Source

I am binding ExtJs Gridpanel from database and add "Delete" button below my gridpanel. By using the delete button handler, I have deleted selected record on gridpanel. But, after deleting, the grid does not refresh (it is deleted from database but shows on grid because of no refresh).

How can I refresh grid after delete handler ?

Answer

Dasha Salo picture Dasha Salo · Apr 28, 2011

Try refreshing the view:

Ext.getCmp('yourGridId').getView().refresh();