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

[Solved] Grid in Edit Form not binding

0 Answers 11 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 20 Dec 2011, 04:26 PM
I have a main grid Contacts.
This has an Editor Template which has a grid in it to display notes created related to that contact.

@model ContactManager.Models.Contact
removed for brevity

@(Html.Telerik().Grid<Note>()
    .BindTo(Model.Notes)
    .Name("Notes")
    .DataBinding(bind=>bind.Ajax() 
.Columns(columns=>{columns.Bound(m=>m.Description);columns.Bound(m=>m.Text);}))

The returned JSON has two notes in it
 "Notes":[{"Description":"reeree","Text":"fsdfsdf  sdfs df","EntryDate":"\/Date(1324070995900)\/","ContactId":4,"Timestamp":[0,0,0,0,0,0,1,84],"CreationUserId":null,"LastModifiedUserId":null,"Id":1},{"Description":"Note","Text":"Test","EntryDate":"\/Date(1324391966480)\/","ContactId":4,"Timestamp":[0,0,0,0,0,0,1,85],"CreationUserId":null,"LastModifiedUserId":null,"Id":2}]

However, the notes don't display when the Edit Form Displays in Popup Edit Mode, am I doing something wrong, I am not trying to edit the notes just display them.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Share this question
or