This question is locked. New answers and comments are not allowed.
I have add a
<% Html.Telerik().Menu().Name("LeftMenu").BindTo("telerik.mvc.menu").Render(); %>
at Site.Master
and add
SiteMapManager.SiteMaps.Register<XmlSiteMap>("menu", sitemap => sitemap.LoadFrom("~/Web.sitemap"));
in global.asax.cs
and add
[PopulateSiteMap(SiteMapName = "menu", ViewDataKey = "telerik.mvc.menu")]
before controller class define
and the menu will only show in one action, in other actions it shown without any item, how should this be?
the actions have a Authorize or not both not shown item.
<% Html.Telerik().Menu().Name("LeftMenu").BindTo("telerik.mvc.menu").Render(); %>
at Site.Master
and add
SiteMapManager.SiteMaps.Register<XmlSiteMap>("menu", sitemap => sitemap.LoadFrom("~/Web.sitemap"));
in global.asax.cs
and add
[PopulateSiteMap(SiteMapName = "menu", ViewDataKey = "telerik.mvc.menu")]
before controller class define
and the menu will only show in one action, in other actions it shown without any item, how should this be?
the actions have a Authorize or not both not shown item.