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

SiteMap + custom template + server variable

1 Answer 47 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 05 May 2015, 04:11 PM

I have a requirement to provide the user a visual indicator that they are logged in and a selection drop-down for which user profile they want to be using. This requirement is accross the application and I would like to place these functions into the RadNavigation {or RadMenu, whichever is best} on the master page.

 Piecing things together I think the following is the right approach. Please advise on corrections and/or better ways to do this.

1) in the site-map, the add two nodes titled 'userSamAccount' and 'userProfile'

2) create one custom databound template for displaying the active directory name, and another for displaying the profile drop-down items : http://www.telerik.com/help/aspnet-ajax/navigation-server-side-templates.html

3) on Template Needed, if node title is 'userSamAccount' or 'userProfile', align to the right via css {below} and change their templates to the custom ones.

 

Will this work?

center:

<style type="text/css">
      .RadNavigation .searchBoxWrapper {
         position: absolute;
         right: 0;
         top: 0;
     }
  </style>

 

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 06 May 2015, 05:11 AM
Hi David,

Thank you for contacting Telerik support.

The plan looks correct. The only advice i would add is concerning the step 3. Instead of using the template needed event you can set the CssClass of the nodes in the NodeDateBound event 

If you have further questions please don't hesitate to contact us again.

Regards,
Plamen
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Navigation
Asked by
David
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or