Incorrect item shown on select event when using optionLabel

2 posts, 0 answers
  1. tom
    tom avatar
    13 posts
    Member since:
    Nov 2013

    Posted 09 Mar Link to this post

    Hi,

    Issue:  Essentially if you use an optionLabel, the incorrect dataItem is pulled back using the event.item.index() as well as the event.sender.dataItem() methods.  

    Reproducible demo here:  http://dojo.telerik.com/awona

    Steps to reproduce:

    1) Choose Maria, first real option in the drop down list.

    2) Note at the top of screen, index 0 and dataItem is the optionLabel.  It should be index = 1 or at the very least, dataItem should = Maria Anders. 

    Thanks

     

     

     

  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 11 Mar Link to this post

    Hello Tom,

    A similar problem is explained in the following documentation article. Please take a look and let me know if you have any further questions:

    http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#events-select

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top