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

Automatically Select Only/First Option from Cascade

1 Answer 174 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 28 Mar 2016, 06:57 PM

How I can cause the second combo box of cascading group of a combo boxes to automatically select the only item found after a user selects an item from the first combo box. While it may seem simply straight forward, it has proven quite difficult. JavaScript tricks such as select(0) or value(0) have not worked.

 

Thank you for your help,

Adam

1 Answer, 1 is accepted

Sort by
1
Dimiter Topalov
Telerik team
answered on 30 Mar 2016, 12:31 PM
Hi Adam,

The select() method of the Kendo UI ComboBox will do the trick, as long as it is invoked after all of the data items have loaded (you can handle the dataBound event):

// ComboBox configuration
...
dataBound:
function(e){
  e.sender.select(0);
},
...

I hope this helps.

Regards,
Dimiter Topalov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
Adam
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or