This is a migrated thread and some comments may be shown as answers.

Treeview listing giving error

0 Answers 24 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Abdul Batin
Top achievements
Rank 1
Abdul Batin asked on 28 Aug 2012, 07:16 AM

@

 

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>

 

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Abdul Batin
Top achievements
Rank 1
Share this question
or