Hide Tabs for unauthorized users

2 posts, 0 answers
  1. Philip
    Philip avatar
    70 posts
    Member since:
    Apr 2008

    Posted 02 Apr 2009 Link to this post

    I was wondering if there is a way to disable specific tabs, depending on a user log in.

    For example, if employee 1 logs in, he has access to the parts catalog but not the sales tab (greyed out,disabled or invisible). If employee 2 logs in, they have access to both tabs.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 03 Apr 2009 Link to this post

    Hello Philip,

    You can try out the following code to disable tabs based on authenticated users.
    c#:
     protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!User.Identity.IsAuthenticated)// check for the user  
            { 
                RadTabStrip1.FindTabByText("Sales").Visible = true
            }        
        } 

    Thanks
    Princy.
Back to Top