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

RadMenu and SiteMapPath

1 Answer 108 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Banca del Ceresio
Top achievements
Rank 1
Banca del Ceresio asked on 08 Oct 2009, 02:23 PM
Hi everybody,

I trying to find a way to bind my rad menu with a siteMapPath but I can't find a way to do it.

On my master page I hate a menu item

<

 

telerik:RadMenu ID="RadMenu1" runat="server" Skin="Vista">

that i dinamically populated non my code behind page in the following way

 

RadMenu1.DataTextField =

"Name";

 

RadMenu1.DataFieldID =

"Id";

 

RadMenu1.DataFieldParentID =

"ParentId";

 

RadMenu1.DataNavigateUrlField =

"NavigateURL";

 

RadMenu1.DataSource = GetMenu(Context.User.Identity.Name.ToString());

RadMenu1.DataBind();

Is there a way tu use the asp:SiteMapPath? Or is there a better way?

Thanx a lot for the Help

Raphael

PS: I still use the telerik 2008 Q1

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Oct 2009, 11:47 AM
Hello Raphael,

You can use a SiteMapDataSource control inorder to bind your RadMenu to a sitemap. You can set the DataSourceId of the RadMenu to that of the SiteMapDataSource. Check out the following help document to understand better:
Binding to Hierarchical DataSource Components

Hope this helps..
Princy.
Tags
Menu
Asked by
Banca del Ceresio
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or