简体   繁体   English

在ExtJs中动态重新加载面板

[英]Reload panel dynamically in ExtJs

I am new in ext. 我是分机新手。 I have a dashboard containing multiple panels each panel contains a separate display in it. 我有一个包含多个面板的仪表板,每个面板都包含一个单独的显示。 I want to reload/refresh a panel dynamically. 我想动态地重新加载/刷新面板。 It supposed to refresh with latest/updated data from database itself. 它应该刷新数据库本身的最新/更新数据。

I have tried below codes but nothing working for me. 我试过下面的代码,但对我没用。 TIA. TIA。

Ext.getCmp('panelId').store.reload(); // it changes grid with dynamic store but not refreshing plugins in panel.
Ext.getCmp('panelId').updateLayout();
Ext.getCmp('panelId').getView().refresh();

Try doLayout. 尝试doLayout。 Ext.getCmp('panelId').doLayout() , should do a 'update layout' that you had in try two. Ext.getCmp('panelId').doLayout() ,应该执行尝试二中的'更新布局'。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM