This question is locked. New answers and comments are not allowed.
I'm trying to bind a menu to a siteprovider just like in your provided example. The problem I'm having is I can't get it to work with the format of sitemap file you use in the example. I can only get it to work with the old net forms sitemap format. I just swap out my sitemap file for the one in your example and it breaks the menu. I get some rendering, but the links do not work, and the levels don't work and the urls are not being generated. If I simply swap back my sitemap file it all works fine. I thought maybe you were using the MvcSiteMapProvider, but see no reference to it in your example. What am I missing? Are you doing something in your example that I'm missing that lets you use the "mvc" friendly sitemap format?
Thank you!
My code:
global.asax.cs
SiteMapManager.SiteMaps.Register<XmlSiteMap>("Web", sitmap => sitmap.Load());
View:
@(Html.Telerik().Menu()
.Name("Menu")
.BindTo("Web")
don't need a controller action as it is being registered in the global file.
This format breaks the menu:
<siteMapNode controller="grid" action="FirstLook" title="First Look" />
The format that works:
<siteMapNode url="/photos" title="Event photos" description="" />
Thank you!
My code:
global.asax.cs
SiteMapManager.SiteMaps.Register<XmlSiteMap>("Web", sitmap => sitmap.Load());
View:
@(Html.Telerik().Menu()
.Name("Menu")
.BindTo("Web")
don't need a controller action as it is being registered in the global file.
This format breaks the menu:
<siteMapNode controller="grid" action="FirstLook" title="First Look" />
The format that works:
<siteMapNode url="/photos" title="Event photos" description="" />