This is a migrated thread and some comments may be shown as answers.

how to override the backcolor of dropdownlist that has radformdecorator?

1 Answer 83 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Web team
Top achievements
Rank 1
Web team asked on 24 May 2010, 04:44 AM
hello,

im trying to do it on the server side but it seemed impossible? any css custom class?

1 Answer, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 25 May 2010, 01:35 PM
Hi Arnold,

You should set background-image and background-color to none !important;,  in rfdSelect CSS class, e.g.
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .rfdSelect
        
           background-color: Red !important;
           background-image: none !important;
        }
        /* Items */
        .rfdSelectBox li
        {
            background-color: Blue !important;
            background-image: none !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" Skin="Black" />
        <asp:DropDownList ID="ddList1" runat="server">
            <asp:ListItem Text="Item1"></asp:ListItem>
            <asp:ListItem Text="Item2"></asp:ListItem>
            <asp:ListItem Text="Item3"></asp:ListItem>
        </asp:DropDownList>
    </form>
</body>
</html>


Sincerely yours,
Petio Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
FormDecorator
Asked by
Web team
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Share this question
or