@
using Kendo.Mvc.UI
@
using Kendo.Mvc.UI.Fluent
@
using SpineWMS.Domain
@model
IList<SpineMenu>
@(Html.Kendo().TreeView()
.Name(
"Outline")
.BindTo(Model, (
NavigationBindingFactory<TreeViewItem> mappings) =>
{
mappings.For<
SpineMenu>(binding => binding
.ItemDataBound((item, layer) =>
{
item.Text = layer.MenuText.ToString();
}
));
}
)
)
Why above code is giving error "Object reference not set to an instance of an object."
in _Layout.cshtml
<
li>@{this.Html.RenderPartial("~/Views/Menu/Index.cshtml");}</li>