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

selectedIndex on kendoComboBox

2 Answers 667 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Guillermo
Top achievements
Rank 1
Guillermo asked on 06 Sep 2012, 06:39 PM
Hello,


I have being working with the kendoCombobox trying to implement in our project. 


I'm experencing one issue and I need a clarification. 


I created a kendoCombobox, with some options. and i'm adding to it 2 events. one is the CHANGE event and the other is the SELECT event.


I notice that in the CHANGE event there is a selectedIndex propertie of the current event. (this.selectedIndex) that represents a "-1" when the item doesn't appear in the datasource and the current index when yes. I can access to the value and use it to performe some validation, but i want to know if is there any reason that this is not in the documentation? I tried to look for a selectedIndex implementation in the documentation of the comobobox, and i couldn't find anything, i only realized of this value when i have debugged with the chrome.

Thekns for your time.
Polit, Guillermo

Sungard Investran developer.

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 10 Sep 2012, 11:08 AM
Hello Guillermo,

 
The "selectedIndex" is a property of the widget, which holds the index of the current selected item. It is not documented, because we suggest to use "select" method, which returns the selected index. You can find information about it here and here.

Regards,

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!
0
Guillermo
Top achievements
Rank 1
answered on 13 Sep 2012, 01:27 PM
thanks you very much!!!

Regards
Guillermo
Tags
ComboBox
Asked by
Guillermo
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Guillermo
Top achievements
Rank 1
Share this question
or