This is a migrated thread and some comments may be shown as answers.
PanelBar: How to hide the top level node if "child" nodes are not authorized for user role
3 Answers 56 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
e
Top achievements
Rank 1
e asked on 18 Nov 2010, 04:53 PM
Hi,
   I have a slight dilemma, that I couldn't find the answer to after scouring the web for the last day and a half. 

   Here it goes:  I am playing around with an MVC2 app, that has a Telerik's MVC Extension pack controls: PanelBar and a Menu, which are both bound to the sitemap.  With the built-in authorization decoration of controller action methods, the PanelBar and Menu correctly trim away the child nodes for which the user is not authorized.  But the "group" node, is still visible.  So if my sitemap's hierarchy was like so:

Home
   |------ Index
   |------ About
Administration
   |------ Add Users
   |------ Maintain Users

When a user without Administrative role logs in, they will see the panelbar rendered like so:

Home
   |------ Index
   |------ About
Administration

So my question is if there is a built-in support to trim away the group node (Administration in this case), if it doesn't have any visible children.  And if not, is there an elegant way of doing it?

Thank you!

3 Answers, 1 is accepted

Sort by
0
Kaz
Top achievements
Rank 1
answered on 16 Jun 2011, 07:09 AM
Have you found a solution for this?
0
Dominic
Top achievements
Rank 1
answered on 04 Apr 2012, 11:45 AM
Is there any solution for this?
0
Dominic
Top achievements
Rank 1
answered on 12 Apr 2012, 08:43 AM
Hello,

can anyone of telerik tell us if there is a build-in support, please?

Regards
Tags
PanelBar
Asked by
e
Top achievements
Rank 1
Answers by
Kaz
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Share this question
or