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

Initial values for cascading dropdowns

2 Answers 296 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Klystofer
Top achievements
Rank 1
Klystofer asked on 20 Apr 2012, 02:03 AM
Hi,

I'm trying to set initial values for a group of dropdowns that are linked (cascade).

Example: http://jsfiddle.net/klystofer/pY3rc/5/

What is the best way to do this?

Regards,
Klystofer

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 20 Apr 2012, 03:43 PM
Hi,

 
In order to achieve your goal you need to use the latest official release of KendoUI and enable the comboboxes when you set the value:

//set categories value
categories.value('3');
 
//set products value
products.enable();
products.value('19');
 
//set orders value   
orders.enable();
orders.value('10345');
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
Uilton
Top achievements
Rank 1
answered on 17 Dec 2012, 12:15 PM
I've a problem: I have three cascade dropdownlists and when trying to define initial value (under cascade, too) instead to call the ajax controller methods in order (2nd dropdownlist's controller method and after 3rd) call the controller methods out of order (3rd and after 2nd) and crash my initial value!

Could someone help me?
Tags
DropDownList
Asked by
Klystofer
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Uilton
Top achievements
Rank 1
Share this question
or