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

RadPanelBar hid iems depend on user roles

1 Answer 76 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
arkan
Top achievements
Rank 2
Iron
arkan asked on 26 Jul 2016, 05:19 PM

hi all

im working on project with RadPanelBar in master page iwant to hid some items depend on user roles , for example admin most see some items hidden for other users 

how to manage this senario 

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 29 Jul 2016, 08:20 AM
Hello Arkan,

You can have the specific items hidden by default (regarding the standard users). In addition, at Page_Load  you can get the current user role and set the needed items visibility to true. For setting some item as visible you can use the below implementation and an example:

RadPanelBar1.FindItemByText("SomeItem").Visible = true;

Regards,
Nencho
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
PanelBar
Asked by
arkan
Top achievements
Rank 2
Iron
Answers by
Nencho
Telerik team
Share this question
or