RadPanelBar hid iems depend on user roles

2 posts, 0 answers
  1. arkan
    arkan avatar
    10 posts
    Member since:
    May 2015

    Posted 26 Jul 2016 Link to this post

    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 

  2. Nencho
    Nencho avatar
    1777 posts

    Posted 29 Jul 2016 Link to this post

    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;

    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.
Back to Top