Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > catch tab changed for tabmenu control View modes: 
User avatar
Member
Member
gclinton01-msn - 4/27/2009 10:17:14 PM
   
catch tab changed for tabmenu control
I'm trying to catch the OnTabChanged event for the tabmenu control in the cmstabcontrol.ascx. I've tried wiring it up in the OnContentLoaded event, the SetupControl function and I even went so far as to add a page load event.

It never appears to fire when I click on the tab menu.



I though it would be as easy as this.tabElem.OnTabChanged += new EventHandler(tabElem_OnTabChanged); but it never fires.


Any ideas or thoughts on how to subscribe to that event.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/1/2009 2:25:12 AM
   
RE:catch tab changed for tabmenu control
Hello,

You need to set this.tabElem.UsePostback property of cmstabcontrol to true for ontabchange event to fire. Please note that in this case you will need to handle all items in menu - they won't be automatically redirected in this case.

Best Regards,

Martin Dobsicek