Load data when control is hidden

2 posts, 0 answers
  1. Krzysztof
    Krzysztof avatar
    3 posts
    Member since:
    Jun 2014

    Posted 21 Jan 2015 Link to this post

    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
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 23 Jan 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top