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

Using one class to initialize all kendo dropdowns does not work

1 Answer 138 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 28 Feb 2012, 01:12 AM
 I was using this method:

for each dropdown that I wanted to turn into a Kendo Dropdown I added the class "kendoddl".  then on my document ready I simply called 

 $(".kendoddl").kendoDropDownList();

It worked fine until I added two drop-downs on the same page.  They interfere with each other and stop working after a few clicks.

Is using classes to initialize, as shown above, not supported?



1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 28 Feb 2012, 04:39 PM
Hello,

 
You should use jQuery each method to acheive your goal. Check this jsFiddle demo.

Greetings,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
DropDownList
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or