Solved

ASP.net dropdownlist  horizontal scrollbar setting

Posted on 2004-10-07
10
6,713 Views
Last Modified: 2011-10-03
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
0
Comment
Question by:mani_sai
  • 3
  • 2
  • 2
10 Comments
 
LVL 33

Expert Comment

by:raterus
ID: 12252671
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
 
LVL 33

Expert Comment

by:raterus
ID: 12252732
     <div style="width:200px; overflow: scroll">
                  <asp:dropdownlist ... />
      </div>

--The best I can think of

0
 
LVL 17

Expert Comment

by:AerosSaga
ID: 12253184
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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 8

Author Comment

by:mani_sai
ID: 12369237
Sorry, It didnt help me out.

Thanks
0
 
LVL 17

Expert Comment

by:AerosSaga
ID: 12369259
did it apply the style?
0
 
LVL 8

Author Comment

by:mani_sai
ID: 12369281
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
 
LVL 33

Accepted Solution

by:
raterus earned 500 total points
ID: 12369357
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IIS redirect 1 77
Example works but why do I need to click twice on button 4 48
Add a Condition in ASP Repeater 6 34
Change to file doesn't show up 16 52
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question