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

[Solved] Using a dropdown list when editing a grid

6 Answers 451 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.
Andy McShane
Top achievements
Rank 1
Andy McShane asked on 23 Feb 2010, 03:02 PM
Hi, is it possible to have a dropdown list of options when configuring a grid for editing? If so, are there any examples?

6 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Feb 2010, 03:25 PM
Hello Andy McShane,

Currently this is not supported. Once we provide support for dropdowns we will create an example.

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.
0
Andy McShane
Top achievements
Rank 1
answered on 23 Feb 2010, 03:39 PM
OK, pity. Any idea if this is in the pipeline?
0
Kazi Manzur Rashid
Telerik team
answered on 25 Feb 2010, 07:24 AM
Hi Andy McShane,

As Atanas mentioned there is no out of the box support to show DropDwnList in ASP.NET MVC with templates. To show dropdonwnlist you have to create Custom ModelMetadta providers, you can find some of the examples over here:

http://weblogs.asp.net/rashid/archive/2009/11/27/extending-asp-net-mvc-2-templates.aspx
http://weblogs.asp.net/rashid/archive/2009/12/25/more-on-fluent-metadataprovider-for-asp-net-mvc.aspx
http://weblogs.asp.net/rashid/archive/2010/02/09/asp-net-mvc-complex-object-modelmetadata-issue.aspx

Though none of the example shows how to show DropDownList in Grid, but the concept is same.

Sincerely yours,
Kazi Manzur Rashid
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.
0
Atanas Korchev
Telerik team
answered on 25 Feb 2010, 10:30 AM
Hello Andy McShane,

I wanted to follow you up on the subject. You can check the sample project attached to this message.
It shows how to implement a dropdown when the type of your field is not complex (e.g. string). Currently this approach works only for server-side binding. Also the sample is using an internal build because of this bug.

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.
0
Andy McShane
Top achievements
Rank 1
answered on 01 Mar 2010, 03:11 PM
Thanks for your help, I will try your suggestions later this week.
0
ronald
Top achievements
Rank 1
answered on 29 Mar 2011, 06:04 AM
is this supported now?
Tags
Grid
Asked by
Andy McShane
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Andy McShane
Top achievements
Rank 1
Kazi Manzur Rashid
Telerik team
ronald
Top achievements
Rank 1
Share this question
or