Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
WebTab / tabItem visible property
posted

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

Parents
No Data
Reply
  • 29417
    Verified Answer
    Offline posted

    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

     

Children