This question is locked. New answers and comments are not allowed.
I'm new to Telerik and my company has purchased the MVC ASP.NET controls. I'm trying to bind a List<Gadget> to the TreeView control. Here is my view:
However, I'm receiving the following error:
"Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type"
The error is occuring on the following line:
.BindTo(Model, mappings => {
Am I doing something wrong?
@{ Html.Telerik().TreeView() .Name("TreeView") .DragAndDrop(settings => settings .DropTargets(".drop-area") ) .ClientEvents(events => events .OnNodeDrop("onNodeDrop") .OnNodeDragging("onNodeDragging") ) .BindTo(Model, mappings => { }) .Render(); }
However, I'm receiving the following error:
"Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type"
The error is occuring on the following line:
.BindTo(Model, mappings => {
Am I doing something wrong?