473,378 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Controlling the Vertical Scrollbar of a Select/Combo Box

RamananKalirajan
608 512MB
Hi All,
I have this question for a long time. I googled out but no use. I want to have my vertical scrollbar shown after my 5 options are shown. I dont want to use multipe or size. Since it makes the select as a list box. Any Solutions or suggestions would be helpful...

Thanks and Regards
Ramanan Kalirajan
Jan 25 '10 #1
5 5452
Dormilich
8,658 Expert Mod 8TB
I want to have my vertical scrollbar shown after my 5 options are shown.
how do I have to understand that?
Jan 25 '10 #2
RamananKalirajan
608 512MB
Suppose I have a select with 100 option, when i click the drop image over there, only 5 options should be viewable for me, to view the rest i have to scroll. But the default scrollbar cant be controlled. This is my problem

Thanks and Regards
Ramanan Kalirajan
Jan 25 '10 #3
In that scenario, why don't you just adjust the contents of the select?
Jan 25 '10 #4
RamananKalirajan
608 512MB
laztheloser,
Can you elaborate your point?

Thanks and Regards
Ramanan Kalirajan
Jan 26 '10 #5
When your image is clicked, you could recreate all the options of your select. Put the 5 you want at the top, and make sure the top one is selected. Then pad the select box with some empty options, then add in the rest. The advantage of using this method is that it's still an HTML box and it's really easy - you're just modifying the innerHTML of a select box, after all! The disadvantages are that 1)Different browsers have different scroll-bar thresh-holds, but the distinction should still be clear to the user, and 2)depending on how many hundreds of options you have it could be quite slow. You could get around this by pre-generating the code for the options when the image is clicked.

Or you could just use a script to simulate a select, of course! You'll find several if you google for them, but the basic idea is to have a popup scrollable div layer underneath your "field".
Jan 26 '10 #6

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

Similar topics

2
by: Don Schneider | last post by:
I tried to setup a frameset which consists of 4 different subframes. Each of these subframes should fetch a different web page from the internet and display it completely (!). BUT: the vertical...
7
by: Barbara de Zoete | last post by:
On one of my pages http://home.wanadoo.nl/b.de.zoete/html/tekeningen.html I have a div containing thumbnails (who ever came up with that word?) to select a larger view of a picture. The div is...
3
by: Scott M | last post by:
Hi, I am currently trying to write a simple game using vb.net the form I am working on is 800*600 (this is set as the maximum size) and autoscroll is set to true. The user moves around the...
4
by: Rob T. | last post by:
I am using a div tag to make an element that contains some text. I have specified overflow: auto; in my stylesheet. If I use font-size/line-height to specify the font information I get a vertical...
3
by: buht | last post by:
Hello Everyone, Fairly new to c# here and have a question regarding scrollbars, particularly a vertical scrollbar. It looks like my options are restricted for the textbox scrollbars being...
0
by: Gene Hubert | last post by:
I've got two treeviews side by side on a panel on a form. They each have about 20 nodes in them. The treeview on the right has a vertical scrollbar. The treeview on the left needs a vertical...
1
by: SJ | last post by:
Is it possible to have a Listbox with no scrollbar? I have 3 items in my listbox, and I have the Rows property set to 3. It still shows me the scrollbar. Any way to get rid of the vertical...
1
by: platoon1sc | last post by:
Hi guys.I have a problem with Internet Explorer in my web-application. I have a vertical scrollbar into my jsps but firefox show the vertical srollbar, but IE doesn't. IE show a blank space where...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.