Dropdown list in grid cell

1 Answer 5177 Views
DropDownList
Gary
Top achievements
Rank 1
Gary asked on 15 Dec 2015, 07:55 PM
Hello,
I am looking for information on how to add a dropdown box to an MVC specific grid control. I need the box to display in a cell and show when the grid is rendered. Do you know of a sample or have example code available?

Thanks 

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 17 Dec 2015, 11:18 AM
Hello Gary,

If you would like to use the DropDownList widget as cell editor, then please refer to these online demos: If you would like to display the dropdownlist in read mode, then you will need to use specific client template. Find more details here:
Regards,
Georgi Krustev
Telerik
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 Feedback Portal and vote to affect the priority of the items
Huey
Top achievements
Rank 1
commented on 24 Apr 2020, 02:32 PM

I am trying to follow the demo listed here:

 

http://demos.telerik.com/aspnet-mvc/grid/editing-custom

Right now I have my values listing as two text boxes in the cell. It apparently gets everything except using my _StatusList.cshtml to make the drop down. Maybe you can catch what I missed.

Aleksandar
Telerik team
commented on 28 Apr 2020, 12:03 PM

Hello Huey,

The custom EditorTemplate needs to be placed in the ~/Views/Shared/EditorTemplates folder. From the provided sample it is not clear whether the partial view is located in this folder, so if not please move the custom Editor template folder indicated and let me know if this resolves the issue.

For further details, you can refer to the Custom Editor Template documentation section.

Regards,
Aleksandar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Huey
Top achievements
Rank 1
commented on 28 Apr 2020, 12:30 PM

Yea that got it - thanks. I do need to go back and look at how to commit the change to the database and I think I need to see if I can make the drop down a little more responsive. It is taking me a few clicks to get the drop down to umm drop down.
Tags
DropDownList
Asked by
Gary
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or