tags:

views:

251

answers:

2

Hi,

I have a button with a working listener in an ExtJs Data Grid. I have a toolbar at the bottom with this reset button. I have no forms however. Hence, what is the code that will reset a data grid on click? I can workaround this by refreshing the page when clicking the button but its more smooth to reset it since there is no re-loading at all. Also, like this the settings chosen by the user will be kept.

Many thanks in advance.

+2  A: 

You can reload the grid's store:

grid.getStore().reload();
LiraNuna
A: 

Hai Chris, Have a look at this it may help you Resetting Datagrid in Extjs

Pandiya Chendur