Hi,
Trying to set visible property to false on a specific tab in a WebTab 13.2.
WebTab.Tabs(5).Visible = False
When I debug, I can see the code hitting this line but when the page renders it is visible anyway.
Question: I am doing this in Page_load. Should I be doing it somewhere else in the code instead? I need it to execute for both initial load and any postbacks.
Thanks in advance
Hello CSpace ,
Thank you for posting in our forum.
The ContentTabItem does not seem to have a Visible property in 13.2.
You can hide it by setting the Hidden property:
WebTab.Tabs(5).Hidden = True
The Page_Load event will fire on both the initial load and on postbacks so you can set the property in it.
Let me know if you have any questions.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://ko.infragistics.com/support
Thanks. That works!