Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a dropdownlist with 200 values , It is very difficult to select a particular value by scrolldown.So how can I select a exat value using search option in a dropdownlist?
Posted
Comments
Sergey Alexandrovich Kryukov 21-May-12 12:25pm    
Wrong question. I would understand if you asked "what to use instead of drop-down list". If you have 200 values or so, the idea of drop-down list does not work well.
--SA
Ed Nutting 21-May-12 13:03pm    
Agreed and it screams bad design if you are trying to get a user to select 1 thing in 200, at least in part because when was the last time anyone read a list of 200 let alone remembered enough of the items to pick the correct one by the time they were finished reading... I suggest the OP possibly (I'm guessing here given it's web based) should use multiple drop downs (2 or maybe 3) to break the options down into smaller categories and sub-categories, in much the same way as the CodeProject article submission page does.

Hope this helps (the OP),
Ed
myansweris 21-May-12 13:51pm    
Thank you for u r response... Let me put it in this way .. If a DDL contais the list of countries..how can u search a country called (USA) with out using scrollbar?

The default implementation of dropdownlist in ASP.NET will allow the user to type and select the item based on the characters entered. However, 200 items maybe a bit too much. Perhaps you could consider a cascading dropdown[^]
 
Share this answer
 
Comments
Maciej Los 21-May-12 13:12pm    
Good answer, my 5!
myansweris 21-May-12 13:39pm    
Thank you for u r response , Thing is that i am using a Third Party tool called Obout Dropdownlist (Obout.com).So i really have to write a code to search a particular item in a dropdownlist.Please let me know if u have any idea
[no name] 21-May-12 14:03pm    
"any idea"

Yes, don't use third party controls that remove built-in functionality or can't be extended.
myansweris 21-May-12 14:50pm    
Ok any 'SOLUTION"
Somebody has a google style dropdown. See Ajax ComboBox in ASP.NET[^]
 
Share this answer
 
 
Share this answer
 
Instead of using drop down, you can text box and in text key down you can search the required field by using JSON and Jquery.
 
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