This question is locked. New answers and comments are not allowed.
In the Telerick MVC source code, In Menu.cs, I'm noticing a problem with a Menu that is
bound to a sitemap, the menu is loading slowing, taking about 5-10 seconds.This is how I use menu in the view - pretty basic.<%: Html.Telerik().Menu().Name("Menu")
.BindTo("sample")%>
In debugger I've isolated the problem to following line of code to where it hangs.
In the Telerick MVC source code, menu.cs, the WriteHtml function hangs for
about 5-10 seconds before menu appears. The line of code that hangs is
Items.Each(item => item.WriteItem<Menu, MenuItem>(this, menuTag, builder));
In Menu.cs this is the method...
protected override void WriteHtml(HtmlTextWriter writer)
{
Guard.IsNotNull(writer, "writer");
if (Items.Any())
{
if (SelectedIndex != -1 && Items.Count < SelectedIndex)
{
throw new ArgumentOutOfRangeException(TextResource.IndexOutOfRange);
}
if (HighlightPath)
{
Items.Each(HighlightSelectedItem);
}
INavigationComponentHtmlBuilder<MenuItem> builder = rendererFactory.Create(this);
IHtmlNode menuTag = builder.Build();
Items.Each(item => item.WriteItem<Menu, MenuItem>(this, menuTag, builder));
menuTag.WriteTo(writer);
}
base.WriteHtml(writer);
}
Anyone else run into this?