ExtJs Gridpanel 存储刷新 [英] ExtJs Gridpanel store refresh

查看:16
本文介绍了ExtJs Gridpanel 存储刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从数据库绑定 ExtJs Gridpanel 并在我的 gridpanel 下方添加删除"按钮.通过使用删除按钮处理程序,我删除了网格面板上的选定记录.但是,删除后,网格不刷新(从数据库中删除但由于未刷新而显示在网格上).

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 ?

推荐答案

尝试刷新视图:

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

这篇关于ExtJs Gridpanel 存储刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆