开发者

Resetting a datagrid in ExtJs

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开发者_JAVA技巧. Also, like this the settings chosen by the user will be kept.

Many thanks in advance.


You can reload the grid's store:

grid.getStore().reload();


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜