This question is locked. New answers and comments are not allowed.
I'm using the panel bar to bind a sitemap like demonstrated on the demos page: http://demos.telerik.com/aspnet-mvc/panelbar/sitemapbinding
But when rendering the sitemap with the following code it takes about 6 seconds
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %><% Html.Telerik().PanelBar() .Name("SiteMapPanelBar") .BindTo("sitemap") .Render();%>
(the same problem exists with TreeView instead of PanelBar)
The Action Method itself executes fast
public partial class NavigationController : Controller{ public const string SiteMapFile = "~/Web.sitemap"; public const string SiteMapName = "siteMap"; public const string SiteMapKey = "siteMap"; [PopulateSiteMap(SiteMapName = SiteMapName, ViewDataKey = SiteMapKey)] public virtual ActionResult SiteMap() { if (!SiteMapManager.SiteMaps.ContainsKey(SiteMapKey)) { SiteMapManager.SiteMaps.Register<XmlSiteMap>(SiteMapKey, sitmap => sitmap.LoadFrom(SiteMapFile)); } return View(); }}
Has someone encountered the same problem and/or knows what the problem could be and how to solve it?