I am developing an Asp.Net MVC website using the Kendo user interface.
The RTM version for updating Visual Studio 2013 Update 2 was installed and a problem was received with the IIS processor (CPU> = 30%). http://c2n.me/i7juKB.png
After an hour of trouble finding, it turned out that the problem was related to Treeview in the Kendo user interface with hierarchical data.
Kendo Treeview Asp.Net MVC Shell Code:
@(Html.Kendo().TreeView().HtmlAttributes(new { style = "height:150px;" }) .Name("treeview-library-country") .Events(events => events.Select("common.onTreeViewSelect").Collapse("common.onTreeViewCollapse").Expand("common.onTreeViewExpand")) .Checkboxes(checkboxes => checkboxes.Name("RegionsCheckedNodes").CheckChildren(false)).BindTo(Model.Regions, mappings => mappings.For<MyTreeViewItem>(binding => binding.ItemDataBound((item, i) => { item.Text = i.Text; item.Id = i.Id; item.Checked = i.IsChecked; }).Children(i => i.Items))))
Class TreeViewItem
public class MyTreeViewItem { public bool IsChecked { get; set; } public string Id { get; set; } public string Text { get; set; } public int Count { get; set; } public string AdditionalInfo { get; set; } public List<MyTreeViewItem> Items { get; set; } }
The actual problem is part of the .Children(i => i.Items) code .Children(i => i.Items) . When I remove it, everything is fine.
PS The site works fine until the page with the tree is loaded.
solvable
Just disabled the browser link in Visual Studio.

asp.net-mvc telerik iis-express kendo-asp.net-mvc kendo-treeview
Mike Mazmanyan May 14 '14 at 14:31 2014-05-14 14:31
source share