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

Grid 'manually' bound to model data

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Andrea asked on 04 Jun 2013, 07:16 AM
Let' suppose that I have a model called Person:

public class Person
{
    public string Name {get; set; }
    public List<string> Hobbies {get; set;}
}

I would like to create a View using an item Person as a Model, and editing it.
I cannot find examples on how to tie a grid to the list of hobbies, and on how to update the model back to the server with an HttpPost. Obviously the user should be able to add, modify and delete hobbies in the grid...
Thanks

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 06 Jun 2013, 05:40 AM
Hello Andrea,

How to configure the Grid for editing is described in the following documentation topics:

If you wish to submit the Grid data with a forma along with the "Name" then I can suggest to check this code-library.

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Andrea
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or