I would like to place a drop-down list in a column of the MVC grid and allow the user to modify the drop-down list value on multiple rows prior to submitting the form. After the form is submitted I need to retrieve all the drop-down values in the controller. Each drop-down would need to have a distinct name so I can determine which row it came from. Is this even possible? If so, how would I represent the drop-down values in the model?
Any help would be appreciated.
Thanks.
Jeff
6 Answers, 1 is accepted


Any help would be appreciated .
Thanks.
Gurarpan

If you have worked this out, and wouldn't mind sharing, that would be awesome.
There is a code library project which shows how to integrate a combobox with grid in cell editing mode (which allows to edit more than one row and then submit the changes). You can check that project for a reference.
Kind regards,Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Thanks,
What errors are you getting? The project requires ASP.NET MVC 3 and builds and runs ok at my side. The combobox is tied in the grid by means of ASP.NET MVC editor templates:
[UIHint("Employee"), Required]
public EditableEmployee Employee { get; set; }
The UIHint attribute tells ASP.NET MVC to use the partial view called Employee.cshtml as the editor of the Employee property. You can find more info about ASP.NET MVC templates in this excellent blog post.
You can also check this code library which is for inline editing.
Atanas Korchev
the Telerik team