我在这里遇到一个奇怪的问题,
我有一个视口 - borderlayout,
我的西区扩展了tab.panel,在第一次运行中我将组件添加到西区作为标签,
一个容器中有一个gridpanel,从西部区域移除此容器并将其添加回工作完美但是,其中的网格不再起作用,我无法选择并单击,监听器无法正常工作
这是我如何添加面板
thisControl.add({
title: title,
xtype: widgetName,
//items:[{xtype: widgetName}],
closable: true,
//autoScroll: true,
listeners: {
'beforeclose': function(pnl, eOpts) {
if (pnl.closeMe) {
pnl.closeMe = false;
return true;
}
Ext.Msg.show({
title: 'Close confirmation',
msg: 'Really close? <br />It will delete all related Information/Windows and Map Results',
icon: Ext.Msg.QUESTION,
buttons: Ext.Msg.YESNO,
animateTarget: this,
callback: function(btn) {
if ('yes' === btn) {
pnl.closeMe = true;
//console.log('closing..' + widgetName);
_this.ClosePanelSetup(pnl.xtype)
_this.getPnlWestPanel().remove(pnl, true);
WSAVL.app.getController('WSAVL.controller.Main.WestPanel.FunctionsGridPanelWindow').DeSelectRow(pnl.xtype);
}
}
});
return false;
},
close: function(panel, eOpts) {
console.log('Closing..');
}
}
});
然后我删除那样的面板
_this.getPnlWestPanel().remove(pnl,true);
pnl.removeAll(false);
重新添加删除的容器之后,网格的选择永远不会被清除,好像它仍在加载旧的,并且所有的监听器都不工作,我不能选择行
感谢您提供任何帮助/建议