473,387 Members | 1,683 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,387 software developers and data experts.

Regarding Drop down list. Need to set Max size

Hi,

I need to populate a dropdownlist control with values. Number of items for
that list exceeds 100.
I am using Html select list option.

When I drop down the list control, it shows the item list to the top of the
page or to the bottom of the page.
So I fixed the size of that control as 5. Now the size of the list has
increased to 5 & the list display size also becomes large in Length &
breadth.

My requirement is it should act as a list where the dropdopwn list should
get open when the drop down button is clicked. And after I selected a
choice, the list should be closed with displaying the selected item in the
listbox.

Is there any way to do this Or Is it possible using any controls?

The code in the program for dropdownlist control.

SELECT style="FONT-FAMILY: Verdana" id="SecurityDropDownList" size=5
runat="server"<OPTION>Select a Security Code</OPTION></SELECT>

--
Regards
Valli
Oct 31 '07 #1
1 7163
the size attribute of the <selectcontrols whether it is displayed as
list or a dropdown. there is no way to specify the size of the actual
dropdown list.

if you really need this feature then you will need a custom control
built from a textbox, image and floating div. there are several examples
of this on the web, and all have their drawbacks.

-- bruce (sqlwork.com)

Valli wrote:
Hi,

I need to populate a dropdownlist control with values. Number of items for
that list exceeds 100.
I am using Html select list option.

When I drop down the list control, it shows the item list to the top of the
page or to the bottom of the page.
So I fixed the size of that control as 5. Now the size of the list has
increased to 5 & the list display size also becomes large in Length &
breadth.

My requirement is it should act as a list where the dropdopwn list should
get open when the drop down button is clicked. And after I selected a
choice, the list should be closed with displaying the selected item in the
listbox.

Is there any way to do this Or Is it possible using any controls?

The code in the program for dropdownlist control.

SELECT style="FONT-FAMILY: Verdana" id="SecurityDropDownList" size=5
runat="server"<OPTION>Select a Security Code</OPTION></SELECT>
Oct 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Darren | last post by:
Please Help Me!! I've created a typical <form> and a <select> element. The options are created dynamically from my access database (using asp). There are about 70 options, and when you click...
4
by: Dan | last post by:
Can anyone offer suggestions on how to do this or if it is possible? I have a form that uses a drop down box and 2 text fields. What I am trying to do is have the value of each text box set by...
0
by: Derty | last post by:
Have an issue with a simple drop down list that I need to filter results of a database table and page display. I can get the drop down list to populate correctly but can't make the page databound...
4
by: zfareed | last post by:
I think I have been going at this all wrong. Let me state the rquirements: Write a function called listsize that takes a pointer to start of linked list and returns number of elements. Write a...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: sarellaravi | last post by:
hi to everyone, just help me out to do this. On my page i have a dropdownlist control,which contain 80 items. when i select the dropdownlist.i am able to veiw 35 items of the list at single look....
0
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of...
30
ADezii
by: ADezii | last post by:
This week’s Tip of the Week will clearly demonstrate how you can dynamically set the Drop Down List Width of a Combo Box to the length of the longest item in its Row Source. The inspiration for this...
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: 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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.