ComboBox checkboxes with more than 5,000 results

2 posts, 0 answers
  1. Sean
    Sean avatar
    51 posts
    Member since:
    May 2008

    Posted 01 Feb 2013 Link to this post

    I have a combobox with 5,000+ results - the behavior should be if the user clicks the drop down the first 10 (pre-loaded) should be displayed if the user types it should perform a search/autocomplete and scrolling should be virtual - I don't want to load all 5,000+ results at one time.

    Using Q2 2011. I checked out the demos and wasn't sure if this is something the combobox does out of the box or will it require custom code.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Feb 2013 Link to this post

    Hello Sean

    In order to load Items on portions (let say by 10 or 15, etc.) instead of loading all Items matching the given text you can set the ShowMoreResultsBox property to true. This will enable the footer which shows which Items are currently loaded and how many remain. Then you must implement the ItemsRequested event handler in a way it returns only the next number of Items. Using this approach you can achieve better performance in cases many Items are to be loaded in the RadComboBox.

    Additionally you can set the EnableVirtualScrolling property to true and RadComboBox will load Items on portions even when you scroll the DropDown.

    Also Set ItemsPerRequest to the number of Items you would like to load per request. The default (-1) loads all Items at once.

    Thanks
    Princy
Back to Top