Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ExtJS:加载前清除面板内容_Extjs - Fatal编程技术网

ExtJS:加载前清除面板内容

ExtJS:加载前清除面板内容,extjs,Extjs,我正试图用#{component}.load({url:'})将一些内容加载到现有面板中;但是面板已经有一些内容,如何清除面板内容?请参见面板方法删除所有(…) 这对你有用吗 Ext.getCmp('xxxxxxxxxxx').getStore().removeAll(); 其中,xxxxxxxx是你的商店。不,它在当前内容之上插入新内容,我在它里面有两个面板,我实际上在使用Coolite,我正试图根据你所说的#{panelId].removeAll(true);#{panelId}.load

我正试图用#{component}.load({url:'})将一些内容加载到现有面板中;但是面板已经有一些内容,如何清除面板内容?

请参见
面板
方法
删除所有(…)

这对你有用吗

Ext.getCmp('xxxxxxxxxxx').getStore().removeAll();

其中,
xxxxxxxx
是你的商店。

不,它在当前内容之上插入新内容,我在它里面有两个面板,我实际上在使用Coolite,我正试图根据你所说的#{panelId].removeAll(true);#{panelId}.load(url:'some_other_page.aspx',method:'POST});在LinkButoSensory的Handler属性中,如果添加了外部站点,如果添加了其他页面,则不会显示任何内容,我将查看容器面板或加载方法以查找问题,谢谢@jgemedina:试着发布一个工作示例-这将挑战我们定位甚至解决问题:)这是容器面板及其初始组件,当使用component.load从javascript加载时,{}初始内容会重新加载
Ext.getCmp('xxxxxxxxxxx').getStore().removeAll();