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

ComboBox checkboxes with more than 5,000 results

1 Answer 83 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 01 Feb 2013, 05:00 PM
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.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Feb 2013, 07:19 AM
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
Tags
ComboBox
Asked by
Sean
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or