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

[Solved] Problem with BindTo Hierarchical Model

4 Answers 143 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Faber
Top achievements
Rank 1
Faber asked on 27 Feb 2011, 08:09 PM
Hi guys

I've a little problem: my IEnumerable<Object> is into a Model public var like Model.myList so my code is

Html.Telerik().Menu()
.Name("MyMenu")
.BindTo(Model.myList , mapping => {

Here is my problem:
after "mapping => {" code I can't see the method "mapping.For<>()" into the available methods list so I can't map my fields into Telerik Menu Item properties.

Is it mandatory to map IEnumerable<Object> directly in Model?
I've attached what I see.

Thank you
Fabrizio

4 Answers, 1 is accepted

Sort by
0
Faber
Top achievements
Rank 1
answered on 28 Feb 2011, 11:13 PM
Any ideas?
0
Faber
Top achievements
Rank 1
answered on 04 Mar 2011, 04:32 PM
Anyone has my problem?
Is it a Menu component issue?
0
Faber
Top achievements
Rank 1
answered on 04 Mar 2011, 05:54 PM
Here the solution....

http://www.telerik.com/community/forums/aspnet-mvc/general/model-binding-issue.aspx
0
jpchenot
Top achievements
Rank 2
answered on 28 Jun 2011, 01:51 PM
Thank you very much for posting the response.

I see that nobody bothered to help from Telerik, although they are the ones who posted the wrong documentation.
Tags
Menu
Asked by
Faber
Top achievements
Rank 1
Answers by
Faber
Top achievements
Rank 1
jpchenot
Top achievements
Rank 2
Share this question
or