hi,

I am having a tab what does not need to show unrelated users. I have not found a way to simply hide it. That's why needed to be removed. But then I am facing to an issue to restore it, with a selection event. This part is not working.

Is this possible to hide?

If not, what the problem with my event restore ?

Code:
restoreOthersTab: function() {
	var othersTab = {
          xtype: 'editOthersList',
          itemId: 'editOthersTabPanel',
          title: 'Others'
      };
	Ext.ComponentQuery.query('#editTabPanel')[0].add(othersTab);
	
	//also restore select event:
	Ext.ComponentQuery.query('#myEditController')[0].control({
      'editOthersList': { selectionchange: Ext.ComponentQuery.query('#myEditController')[0].onOthersEditSelect }
  });
},


hideOthersTab: function() {
	if (Ext.ComponentQuery.query('#editOthersTabPanel')[0]!=undefined) {	
		Ext.ComponentQuery.query('#editTabPanel')[0].remove(1);
	}
}
the event listener made on controller creation:
Code:
Ext.define('MyApp.controller.Edit', {
	extend: 'Ext.app.Controller',
	
	itemId: 'myEditController',
	
	stores: [...],
	models: [...],
	views: [...],
	
	init: function() {
		this.getEditOthersStore().load();
		
		this.control({
	        'editMyList': { selectionchange: this.onMyEditSelect },
	        'editOthersList': { selectionchange: this.onOthersEditSelect }
	    });


		
	},
	
	onMyEditSelect: function(selModel, selection) {
		...
	},
		
	onOthersEditSelect: function(selModel, selection) {
	...
	},
...
}
thx,
Zol