I have a RadListBox that I am trying to use to convert an old ASP page. In my ASP page I was able to use a Select box with optgroup to create headers within the list box. In this case, I have Headquarters as a non-selecteable bold header. Then I have sites indented and beneath. In trying to duplicate the functionality, I can't seem to make it work with RadListBox. I can't find a way to group items in the listbox, so I am using Disabled for the headers and then trying to use CSS to format. Overall, I'm almost there, but I can't get the CSS to change the color of the header text. Since it's disabled, it's grey. I have tried overriding the CSS and I can make the text larger, smaller,bold, italic, etc, but I can't get it to change color. For the non-disabled items, I can change the color. What's going on? I'm using the Internet Explorer Developer Tools to view the applied CSS and it shows my new color as being applied to the disabled items, but it just won't display properly.
Here's the custom CSS I'm trying.
<style type=
"text/css"
>
.RadListBox_Default li.rlbDisabled
{
color
:Black;
font-weight
:
bold
;
text-decoration
:
underline
;
text-indent
:
0px
;
margin-left
:
0px
;
}
.RadListBox_Default .rlbDisabled span.rlbText
{
color
: Black;
font-weight
:
bold
;
text-decoration
:
underline
;
font-size
:
10pt
;
text-transform
:
capitalize
;
font-family
:
Verdana
;
font-style
:
italic
;
}
.RadListBox_Default li
{
margin-left
:
10pt
;
}
.RadListBox_Default span.rlbText
{
font-family
:
Verdana
;
font-size
:
10pt
;
}
</style>
This is the RadListBox.
<
telerik:RadListBox
runat
=
"server"
ID
=
"rlbItemList"
Height
=
"400px"
Width
=
"350px"
AllowTransfer
=
"true"
AllowReorder
=
"false"
TransferToID
=
"RadListBoxDestination"
EnableEmbeddedBaseStylesheet
=
"false"
EnableEmbeddedSkins
=
"false"
CssClass
=
"ListBox"
>
</
telerik:RadListBox
>
</
td
>
<
td
>
<
telerik:RadListBox
runat
=
"server"
ID
=
"RadListBoxDestination"
Height
=
"400px"
Width
=
"350px"
/>