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

Adding a dropdownlist to a template inside a grid header

2 Answers 279 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Shane P
Top achievements
Rank 1
Shane P asked on 19 Jan 2012, 09:52 PM
Not sure if this question should be asked here or in the grid forum.

I am trying to add a dropdownlist to a grid header template however its not working.

I have moved the dropdownlist outside of the template and it works fine.

Do I need to do something special to enable this to work?

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 20 Jan 2012, 09:24 AM
Hello,

What does not work? How does your code look like? Do you see any JavaScript errors? Here is a working demo showing a similar setup.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Shane P
Top achievements
Rank 1
answered on 20 Jan 2012, 10:14 AM
Doh! I was creating the dropdown correctly however I wasn't finding the dropdown within the grid

var dropDown = grid.find($("#my-dropdown").kendoDropDownList({


Thanks Atanas
Tags
Templates
Asked by
Shane P
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Shane P
Top achievements
Rank 1
Share this question
or