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

[Solved] Dropdown databound list in command column

2 Answers 251 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 12 Dec 2014, 06:42 PM
I'm trying to figure out a way to present a dropdown list of commands on a grid row when it isn't in edit mode. I need to make sure that this dropdown list is bindable to data from my model. Is this something I could do with a template field instead?

For instance I have a grid that has a couple of columnns, id and name. I'd like to create a third column that has a list of all the names of the grid and when the user selects one of the names, I'd like to use that to reorder the grid based on the selection. I'm going to use this style to reorder grid rows instead of using drag/drop.

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 16 Dec 2014, 11:18 AM
Hello Richard,


Basically the desired behavior would require custom solution based entirely on you and the exact setup that you have.  As a starting point you can check the following example which demonstrates possible solution for showing editors in display mode of the Grid rows and handle their "change" events:

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Richard
Top achievements
Rank 1
answered on 16 Dec 2014, 03:57 PM
Thanks, have it figured out now. I posted my solution here (http://stackoverflow.com/questions/27450798/kendo-grid-with-dropdown-action-command), very similar to yours.
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Richard
Top achievements
Rank 1
Share this question
or