Using one class to initialize all kendo dropdowns does not work

2 posts, 1 answers
  1. Jeremy
    Jeremy avatar
    56 posts
    Member since:
    Nov 2011

    Posted 27 Feb 2012 Link to this post

     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?
    
    
    
    
  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 28 Feb 2012 Link to this post

    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!
Back to Top