DropDownList skin - assign BorderColor

E

Erik

Good Morning,
I am trying to assign the BorderColor for a DropDownList in a skin. I can't
get anything to work. If anyone has some insight or code on how to assign
DropDownList.BorderColor in a skin, I would greatly appreciate it.
Thanks, Erik
 
A

Alessandro Zifiglio

hi Eric, you cant get it to work because its not supported in IE, and as for
firefox and opera, they set the border around the dropdownlist in collapse
state, while the border is ignored on the dropdown itself.

you can make a simple test yourself and verify this =P

<asp:DropDownList style="border:5px solid green" ID="DropDownList1"
runat="server">
<asp:ListItem>i am an apple</asp:ListItem>
<asp:ListItem>i am an orange</asp:ListItem>
<asp:ListItem>i am a banana</asp:ListItem>
<asp:ListItem>i like fruits!</asp:ListItem>
</asp:DropDownList>

Regards,
Alessandro Zifiglio
http://www.AsyncUI.net
 
E

Erik

Thank you for the response. Is it possible to define a custom control
dropdownlist with updated borders, or will IE not allow this either?
 
A

Alessandro Zifiglio

your welcome, Erik. IE does not support borders on the select element,
period =P
The dropdownlist control renders an HTML select element.
If the border is so important to you, then you can go for a third party
component which is not a standard select element, but a combination of other
elements to mimic a dropdownlist but with addition of the borders you seek,
adding images on the items, highligthing on mouseover etc.

This one seems to be free :
http://www.codeproject.com/aspnet/ComboAdjustDropDownWidth.asp

You can look for something more advanced and nice for a cost like this one :
http://www.telerik.com/default.aspx?pageid=2423

keep searching online.

Regards,
Alessandro Zifiglio
http://www.AsyncUI.net
 

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

Members online

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top