Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Guys,

I am just curious which one is advisable when implementing a control that would let you select an item from a thousand of records?

Is using autocompletebox would address the loading performance issue that the dropdownbox is facing upon loading of the page?

Because in dropdownbox the population of data happens when loading the page
while
autocompletebox happens the population of data is when user type something.

which is a better trade off and best practice?
thanks in advance...
Posted

If you can somehow load all data into the autocomplete box then using autocomplete might be better (not in terms of performance but in terms of client usability).
 
Share this answer
 
v2
Comments
Espen Harlinn 17-Jul-11 17:33pm    
Good point, my 5
Jephunneh Malazarte 18-Jul-11 1:08am    
thanks a lot :)
Abhinav S 18-Jul-11 1:10am    
You are welcome.
I would suggest you to go for autocompletebox using AJAX, simply because it would be user friendly to select the item from the list of thousand items.

But unfortunately, un-optimized Ajax can cause performance issues, the appearance of application vulnerability, and user confusion. It can even damage your search engine rankings.

Remember these points while implementing AJAX:
Applying Ajax correctly to a problem
Using a well created and supported Ajax library like JQuery
Reducing HTTP request requirements
Choosing the right data format for transmission like JSON/XML
Ensuring that network accessibility concerns are addressed
Employing a JavaScript cache
Saving state

And your application would be great!! All the best.

hope it helps :)
 
Share this answer
 
v2
Comments
Salmen Essridi 17-Jul-11 12:04pm    
nice suggestion my 5
Uday P.Singh 17-Jul-11 12:10pm    
thanks salmen!!
Jephunneh Malazarte 18-Jul-11 1:09am    
thanks for the checkpoints i will consider this one in my implementation.
Uday P.Singh 18-Jul-11 1:19am    
welcome :)
 
Share this answer
 
Comments
Espen Harlinn 17-Jul-11 17:33pm    
Nice link, my 5
Jephunneh Malazarte 18-Jul-11 1:11am    
great link.. really
thank you so much for the tips.
Neither. It depends on your app's requirements and data load, which you didn't put into your post. Without those, it's impossible to tell you which one is a better fit for your problem.
 
Share this answer
 
Comments
Jephunneh Malazarte 18-Jul-11 1:26am    
Sorry about that dave.
All i remember is that there's only one requirement:
1. the user allows to select item from table (possible number of record is like 500 and up)

so i am curious about performance hits, because when using dropdown box other than not being able to search, it preloads all record during loading of page.

so i am thinking that maybe if i use autocomplete i will be able to address that issue. :(
I am grateful for the comment of abhinav, thatraja, and uday.

but if you don't mind, if you have other comments i would love to hear it.

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