Solved

ASP.net dropdownlist  horizontal scrollbar setting

Posted on 2004-10-07
10
6,688 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Class Library Dynamics For Connectstring Information 2 28
Message not shown 5 49
VB.net Move a class from Solution Items to a project 2 22
tutorial for ebay api 3 32
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

813 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now