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

hierachical grid change colour of expand icon

2 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 12 Feb 2010, 03:16 PM
Hi,
      I would like to change the colour of the > icon on hierachical grids because it does not show when the colour of the grid line is white.
please can you help me to do this.

regards

Robert Smith

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 17 Feb 2010, 03:10 PM
Hello Robert Smith,

You can wire the ColumnCreated event and apply the color to the GridExpandColumn:

protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
       {
           if (e.Column is GridExpandColumn)
           {
               (e.Column as GridExpandColumn).ItemStyle.BackColor = Color.Red;
           }
       }


I hope this helps,
Martin
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.
0
DJ
Top achievements
Rank 1
answered on 26 Jun 2013, 04:04 PM
I have 4 levels of hierarchical data, is it possible to change the expand column colors for individual levels? I was able to change the colors of the cell with the icon but not its children columns.

Disregard my post, I was able to find the solution ;)
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Martin
Telerik team
DJ
Top achievements
Rank 1
Share this question
or