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

Programmatically setting the value after populating list

1 Answer 159 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 21 Mar 2012, 04:51 PM
Hi.  I have 3 cascading dropdowns in my form, similar to the beta example.  Sometimes when I load my form, it may already be filled out.  Meaning I need to populate the menu with the proper items and then select the correct one. 

My question is, I call the .read method to populate the datasource, but then how do I select the item.  I tried doing it in the datasource changed event but that did not work.  If I set the selection before refreshing the datasource, then it gets wiped out.  I'm not sure why it's not doing it in the changed event, seems like that should.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 23 Mar 2012, 04:06 PM
Hello Kjell,

 
From the Q1 2012 release of KendoUI the value() method will populate the combobox if it uses autoBind false functionality. Please give it a try and let me know what your findings are.

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!
Tags
DropDownList
Asked by
Kjell
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or