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

Dropdown menu in grid

1 Answer 22 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Jakob Nordestgaard
Top achievements
Rank 1
Jakob Nordestgaard asked on 16 Apr 2014, 12:52 PM
Does anybody have an example of how to create a dropdown menu in a gridrow. Since i have limited space in the grid, i would like to create a dropdown menu for the available actions - i.e.

Edit
Delete
Pause

The dropdown should be visible also when not in edit mode and when a user selects an action in the drop down, it should fire a javascript function.

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 18 Apr 2014, 08:39 AM
Hello Jakob,

Basically you should put the HTML markup needed for your DropDownList ( a simple input with a class) inside the template, and you should use the dataBound event of the Grid to turn that input into DropDownList

Check the attached project, it uses the MVC wrappers however most of the implementation is in JavaScript.

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