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

Incorrect item shown on select event when using optionLabel

1 Answer 53 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 09 Mar 2016, 03:18 PM

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

 

 

 

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 11 Mar 2016, 09:05 AM
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!
 
Tags
DropDownList
Asked by
Andrew
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or