This is a migrated thread and some comments may be shown as answers.

Hide Tabs for unauthorized users

1 Answer 38 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 02 Apr 2009, 06:01 PM
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.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 03 Apr 2009, 06:29 AM
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.
Tags
TabStrip
Asked by
Philip
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or