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

ExpandColumn Header style

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 14 Jan 2016, 06:39 PM

I have a hierarchical grid with EnableHierarchyExpandAll="true"

I would like to set the background color of the ExpandColumn header. I would prefer to do this with a CSS class rather than a CSS selector.

I have the following CSS defined: 

.gridHeader
{
background-color:#E1EDF7 !important;
}

in my grid ItemCreated server-side event, I have the following code:

 Select Case e.Item.ItemType
                        Case GridItemType.Header
                            Dim headerRow As GridHeaderItem = CType(e.Item, GridHeaderItem)
                            headerRow("ExpandColumn").CssClass = "gridHeader"
End Select

This doesn't seem to work. Any ideas? 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 19 Jan 2016, 03:05 PM
Hello Albert,

There seems to be an issue with the CssClass property for the ExpandColumn when set in the code-behind. I will log this in our system, so that our developers could further investigate it.

For the time being, please use the following CSS selector for customizing the ExpandColumn header:
<style>
    div.RadGrid .rgHeader.rgExpandCol {
        background: #ffd800;
    }
</style>

Please excuse us for any inconvenience caused by this.


Regards,
Konstantin Dikov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or