Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have a combobox in my page . More than 20 thousand records will be selected and loaded into this combobox. While clicking this combobbox it's very slow to display the contents and takes more time to respond. How can i avoid this situation.

Thanks,
Velkumar.
Posted
Comments
Timberbird 16-Aug-12 7:12am    
You mean you first force client's browser to download 20k records and then make user select one item from that huge list? Simply don't do that. You can split the list into different categories and first let user pick a category, or use any other workaround, but keeping that long list is just unacceptable

1) Limit the number of elements shown in the combo box, otherwise it would defeat the usability of the control if the user has to browse through all that data to get to the item they want. For limiting data, you can try loading 5 items or 10 items at a time and when the user scrolls past the last one, you load the next set. Not sure how to do it, but definitely worth exploring.

2) Consider redesigning your app so instead of using a combo box perhaps use a GridView with paging.

3) Using UpdatePanel intelligently would make sure that this massive data doesn't always get reposted and hence doesn't bloat the view-state and therefore reduces the page size and the amount of HTML to render and hence becomes faster.

hope this helps.
 
Share this answer
 
v2
Why do you want to display 20000 records in Combobox?? Do you think user will be scrolling down and check 20000 records to select one record?

Try something else like autocomplete textbox or gridview with paging.

its very bad idea to load 20k records in a combobox.. Even if we make some changes still the performance will be an issue here always
 
Share this answer
 
Hi,

You can add your custom control in your page. That custom control should have features like,

1) Paging for 10/20 records a page.
2) page should be navigate through Next/Previous/First/Last/Goto.
3) You need Searching in your custom Combobox.

Here[^] some basic idea about Custom control.

Hope this helps you

Thanks
-Amit Gajjar
 
Share this answer
 
hi,

tell me one thing why should u bind these much amount of data in combo box?

thanks.
 
Share this answer
 
hii,
instead of binding with combobox use autocomplete extender with textbox which will help user with limited amount of data
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900