Client-side: synchronously wait for items to load

3 posts, 0 answers
  1. Dili
    Dili avatar
    2 posts
    Member since:
    Sep 2014

    Posted 18 Sep 2014 Link to this post

    Hi everyone,

    I'm manipulating a RadComboBox client-side in javascript using jquery and need some help. I'm loading items into the dropdown via the requestItems() method. I would like to do a synchronous wait until the dropdown has finished loading completely. I couldn't find any such methods in the documentation:

    Here's my code

    var cb = $find('RadComboBoxId');
    var filterText = "my filter";
    cb.requestItems(filterText, false);
    /* i would like to wait synchronously here until the list has completely loaded
       before proceeding to the next line. */
    alert('all relevant items have been loaded!');

    Does anyone know of a solution? Solution doesn't have involve jquery.

  2. Plamen
    Plamen avatar
    2724 posts

    Posted 19 Sep 2014 Link to this post


    In such scenario we recommend using the OnClientItemsRequested event which  occurs after the load-on-demand mechanism has added new items to the RadComboBox.

    Hope this information will be helpful.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
  4. Dili
    Dili avatar
    2 posts
    Member since:
    Sep 2014

    Posted 19 Sep 2014 in reply to Plamen Link to this post

    Hi Plamen,

    Thank you for your reply! I was hoping to avoid using an asynchronous event but it seems there's no other pattern available from telerik to achieve this. I'll try something out in the next few days and post my solution here.

    Thanks again!
Back to Top