I have setup a radPanel with 3 panel items. No skin is set and each item has its backcolor set to a light gray (#eeeeee). When an item is clicked, the color goes from light grey to dark grey. If the item is collasped, the color stays dark gray. How do I get the backcolor for the item to go back to light grey. I have tried using the item click event and set the backcolor to the color I want when the "Expanded" property = false. The code fires but the color never changes. I also tried creating a css and assigning the cssclass and that didn't work either. What am I doing wrong?
This is my ItemClick code.
This is the shell for the PanelBar
Each panel item contains a table with multiple hyperlinks.
This is my ItemClick code.
Private Sub radPanelBar1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles radPanelBar1.ItemClick |
If e.Item.Expanded = False Then |
e.Item.BackColor = System.Drawing.ColorTranslator.FromHtml("#eeeeee") |
End If |
End Sub |
This is the shell for the PanelBar
<telerik:RadPanelBar ID="radPanelBar1" runat="server" Width="100%" ExpandMode="SingleExpandedItem" AllowCollapseAllItems="true"> |
<Items> |
<telerik:RadPanelItem Text="Primary Subscriber's Provider Details" CssClass="gridLabelText" |
Font-Bold="true" Font-Underline="false" BackColor="#eeeeee" ForeColor="#996699"> |
<Items> |
<telerik:RadPanelItem> |
<ItemTemplate> |
Each panel item contains a table with multiple hyperlinks.