如何同时刷新2个面板?

How to refresh 2 panels at same time?

我有一个包含 2 个面板的应用程序页面。当我点击网格刷新选项时,我希望两个面板都刷新。

完整代码link: http://168.63.49.171:9089/bundles/referenceapp/js/generic-grid-view.js

左边是网格面板,右边是detailView面板

谢谢

您可以通过 Ext.suspendLayouts(); and next Ext.resumeLayouts(true); 完成。

Stops layouts from happening in the whole framework.

It's useful to suspend the layout activity while updating multiple components and containers:

Ext.suspendLayouts();
// refresh panels here
Ext.resumeLayouts(true);