PDA

View Full Version : Hide and Show a Tab in Select Event of a Combobox



akosipotpot
15 Feb 2013, 6:05 AM
Hi There,
Is there a way of showing and hiding a tabpanel in select event of combobox - - any suggestion will be appreciated thanks.

sword-it
15 Feb 2013, 8:23 AM
Hi akosipotpot,

Are you talking about show/hide whole tabPanel?. if yes you can simply use show() /hide() method of tabpanel.like-




listeners:{
select:function(){
yourtabpanel.hide();
}
}

akosipotpot
17 Feb 2013, 6:06 PM
maybe not - i used mytabpanel.tab.hide(); it doesn't work either. thank you for your time. hope you can help me with my problem http://www.sencha.com/forum/showthread.php?256188-extjs-accessing-component-id because im having trouble with the function of combobox this is the actual implementation of my code the only difference is i want to hide tab after selecting on combobox (replacing Ext.getCmp('verify').disable() Ext.getCmp('shouldHide').tab.hide(); )