ASP.Net Drop Down List

  • Thread starter Thread starter bommi
  • Start date Start date
B

bommi

Hi

I am using <asp:DropDownList> control in my asp.net code.In that i have
100 values. So i am getting vertical scrollbar. My customer is using
touch screen so for him it is very difficult to scroll down using his
finger. So i want to increase the width of scroll bar. How can i do
this. Please help me.

Thanks
bommi
 
I dont believe you can... at least not with the standard control. You will
have to make a custom one I believe.
 
Hi bommi,

I'm not clear about you question..I guess like this..

You can add Width Tag and assign integer values to this...Width=130px or
Width=12% etc

From designer view :

<asp:DropDownList runat="server" Width="130px" Height="16px"
ID="ddlTypeofL"></asp:DropDownList>

From Code behind :

ddlTypeofL.Width=130;

Ask me if you are not clear..

Maheshkumar.R

http://spaces.msn.com/members/cyberiafreak
 
Hi

Do you know any third party controls which will support this.

Thanks
Ravi
 
Hi

I am able to control the width and height of the <asp:dropdownlist>.

I will explain my problem here again.

If we have more values in the dropdown list we get vertical scroll bar
on the right hand side. I want to increase the width of that vertical
scroll bar.

Please help me.

Thanks
bommi
 
i dont know the answer for your question..But thought of pointing you to this
sample

Open MSDN groups site

http://msdn.microsoft.com/newsgroup....public.dotnet.framework.aspnet&lang=en&cr=US

Check out the search for groups dropdown just above the right frame which
display the posts.. It is a long list and it is being displayed without any
vertical scroll bar..

I checked the source code , it is just a selecet box

<select name TABINDEX="2" ID="cboDiscussionGroup" CLASS="WNInput">

And the class WNInput is like below

..WNInput {
MARGIN-TOP: 1px; MARGIN-BOTTOM: 1px; FONT-FAMILY:
Tahoma,Arial,Helvetica,sans-serif
}

Something to explore more.. HTH
 
there are no css styles for the scrollbar width. you might want to change to
a popup selection window where scrolling is less need, plus you good add
helper links for scrolling.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top