473,472 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

is there a limit to number of items allowed in Combobox List

18 New Member
I am learning ASP as I go while working on this project. I know VB and Access. The page will have a combobox that will be populated from a SQL database and the user will be selecting from the combobox to aid in the search criteria.

Does anyone know if there is a limit to the number of entries you can have in a combobox? I will continue to do my research but if anyone happens to know I would apprecitate a response.

Thanks in advance.
Aug 23 '07 #1
7 6757
jhardman
3,406 Recognized Expert Specialist
The closest HTML equivalent to a VB "COMBOBOX" is called a "SELECT MENU" or "LIST MENU" and is often referred to as a "dropdown list" or "dropdown select".

Anyway, are you referring to whether there is a limit to the actual number of options in the thinger, the number of options displayed at one time, or the number of options a user may select? To each of these the answer is no, there is no limit as far as I know, but there is definitely a practical limit to each of these. For example, in IE there is a bug where expanded dropdown lists are often positioned under other elements (especially buttons). In Safari very long lists are often not shown in their entirety. there usually isn't a problem if there are less than say 30 options, but in some cases, especially where there are very many options, it might be a good idea to use radio buttons or checkboxes or whatever, just so all the options can be seen at one time.

Jared
Aug 23 '07 #2
Heggr
18 New Member
In my additional research I found that the correct name I should have used is Dropdown Select, thank you for verifying that.

I am referring to the actual number of items being listed in the Dropdown list that the person will choose from. The DropDown will have a scroll bar so the user will be able to scroll up and down to see all of the possible selections. Then when they find the correct one they will click on it. They will be selecitng only one.

An example would be on a form asking for a persons address. The field requesting the State would be a Dropdown Select with all 50 states names listed and the user would only select one state. Is there a physical limit to the number of names that could be put into the list?

I hope this clarifies my question better.
Aug 23 '07 #3
ilearneditonline
130 Recognized Expert New Member
As with Jared, I am have never encountered any issues with the number of items. But i would not want my users to have to scroll through several hundred options, and yes i have seen people try that.

In this day and age, if you are using really long lists, i would suggest looking at implementing some auto complete fields with AJAX. It looks cleaner and most users are impressed by things like that.
Aug 23 '07 #4
jhardman
3,406 Recognized Expert Specialist
In my additional research I found that the correct name I should have used is Dropdown Select, thank you for verifying that.
Well, now you know better ;-)

There is not an actual limit as far as I know, but I would argue that there is a practical limit, really long lists might become difficult to navigate and different browsers' interpretations of dropdown selects might not work well for long lists. As I mentioned above, I usually use Safari at home, but Safari doesn't render really long lists well, IE also has a known bug where expanded lists might be covered by other controls. At very least you should test the resulting code in a variety of browsers to make sure they work. Let me know if this helps.

Jared
Aug 23 '07 #5
jhardman
3,406 Recognized Expert Specialist
As with Jared, I am have never encountered any issues with the number of items. But i would not want my users to have to scroll through several hundred options, and yes i have seen people try that.

In this day and age, if you are using really long lists, i would suggest looking at implementing some auto complete fields with AJAX. It looks cleaner and most users are impressed by things like that.
I almost suggested image maps. I think those are really cool and I know they are not as easy to code as selects, so I am doubly impressed when I see them used.

Jared
Aug 23 '07 #6
JamieHowarth0
533 Recognized Expert Contributor
I almost suggested image maps. I think those are really cool and I know they are not as easy to code as selects, so I am doubly impressed when I see them used.

Jared
And especially with state names? Someone sees a map and sees all 51 states lined up, nice and pretty on a map, and then clicks on the map to select their state in which they reside (using JS to handle the actual data generated)? That would be so sweet - but it'd take you a while to program every single polygon on the graphic...
My problem with that (coming from the UK) is that we have a damn sight more than 51 states, we have counties... about 100-odd lol, and some of them are absolutely TINY!!!

Good luck!

medicineworker

P.S. I agree with previous posts about the whole drop-down list thing, I've seen some sites do use a drop-down for state but I wouldn't call it practical as it's at least 60 long (some sites include American Overseas Territories as states) and tends to mess up when the list gets longer than the user's screen.
Aug 24 '07 #7
Heggr
18 New Member
Thank you all for your helpful information. I agree that too much in the list is over doing it and does not look good. We are doing what we can do narrow down what will eventually be put into the list. The boss just gave me a task to find out if there was an actual limit since we know that it is possible to have 100 items or more show up in the list.

I will keep all of your suggestions in mind during the project. Thanks again for all the great suggestions.

Heggr
Aug 24 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Georges Heinesch | last post by:
Hi. I have a combobox with a value list of 4 items. My code needs to know the number of items in that combobox. How can I use VBA to get the number of items in a combobox? TIA --
10
by: Thelma Lubkin | last post by:
My form/subform combination that allows user to display 'ColorSet' records, move to other records via a selector, to add,delete, and edit them, and to manage the related 'Color' records from the...
9
by: Don | last post by:
Is there any way to detect when an item has been added to the Items collection of a combobox or listbox? I am inheriting a Combobox and want to validate items before they are added to the...
3
by: Kriston-Vizi Janos | last post by:
Dear Mr. Kern, and Members, Thank you very much for the fast answer, my question became over-simplified. My source code is appended below. It uses two text files (L.txt and GC.txt) as input...
0
by: marcobx | last post by:
I have a ComboBox and a List of objects to popolate items. I use the DataSource property and not the List collection: List<foolst = new List<foo>; //add elements into the list //......
6
by: active | last post by:
I need a combobox where the items are typed as string - not object. And another where the items are from a class I generated. Can one make such comboboxes from System.Windows.Forms.ComboBox?...
1
by: suchismita.83 | last post by:
Hi, I am developing a messaging form which will use webmail in c#.The mailing list will inherit costomised groups from MOSS 2007 site.So the mailing list may vary in future. I just wanted to...
1
by: injanib via AccessMonster.com | last post by:
is it possible that if the limit to list property of a combobox is set to true the focus is passed onto another field? What I mean is that I have a combo box with the limit to list property set to...
1
by: JAnn81 | last post by:
I have a combo box created using xaml. I bind the item source to a xml document. <Items> <Item> <Name>David</Name> <Age>20</Age> </Item> <Item> <Name>Marcus</Name> <Age>25</Age>
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.