ASP.net dropdownlist horizontal scrollbar setting

Hello Expert,

can we set horizontal scroll bar for asp.net Dropdownlist control.

If yes, please let me know how we can do this.

Thanks
Mani
LVL 8
mani_saiAsked:
Who is Participating?
 
raterusCommented:
If what I posted isn't good enough for you then... You can't do that!

http://www.experts-exchange.com/help.jsp#hi54
0
 
raterusCommented:
Well..you could put it in a scrollable div, but I don't think you'd like the end result of that option (you'd have to scroll to drop it down)?  The usual dropdownlist has no support for a horizontal scrollbar, it would look too bulky if it had one.
0
 
raterusCommented:
     <div style="width:200px; overflow: scroll">
                  <asp:dropdownlist ... />
      </div>

--The best I can think of

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
AerosSagaCommented:
Forcing scrollbars
The techniques used to “fix” the bug in question, can also be used for other purposes. With CSS, you can forcefully show or hide both vertical and horisontal scrollbars in both Mozilla Firefox and Internet Explorer.
Forcefully enabling scrollbars:

html {
overflow: scroll;
}

Forcefully disabling scrollbars:

html {
overflow: hidden;
}

Hiding the horizontal scrollbar in IE:

html {
overflow-x: hidden;
}

Hiding the vertical scrollbar in IE:

html {
overflow-y: hidden;
}

Forcing the horizontal scrollbar in IE:

html {
overflow-x: scroll;
}

Forcing the vertical scrollbar in IE:

html {
overflow-y: scroll;
}

Forcing the horizontal scrollbar in Mozilla:

html {
overflow: <del>moz</del>scrollbars-horizontal;
}

Forcing the vertical scrollbar in Mozilla:

html {
overflow: <del>moz</del>scrollbars-vertical;
}

http://noscope.com/journal/2004/02/horizontal_scrollbar_bug

Aeros
0
 
mani_saiAuthor Commented:
Sorry, It didnt help me out.

Thanks
0
 
AerosSagaCommented:
did it apply the style?
0
 
mani_saiAuthor Commented:
I just want to set
horizontal scroll bar for asp.net Dropdownlist controlon my aspx page.

I dont want it for entire aspx page.

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.