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

Load data when control is hidden

1 Answer 60 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Krzysztof
Top achievements
Rank 1
Krzysztof asked on 21 Jan 2015, 03:49 PM
Hi,

I use Cascading DropDownList (with data from service) on my page. Control is default hidden(in div with style="display:none"), and becomes visible on click to proper button.

It is possible to load data on page load? By default data were loaded when control becomes visible..

Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 23 Jan 2015, 08:56 AM
Hello Krzysztof,

You may force data loading by calling the read method of the DropDownList's dataSource.

$("#yourDropDown").data("kendoDropDownList").dataSource.read();


Regards,
Alexander Valchev
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
Krzysztof
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or