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

[Solved] Nested View

1 Answer 142 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 15 May 2008, 09:40 PM
Good Afternoon.
I am running into a small problem or big depending on the solutoin but here I go.  I will do my best to explain this.

We have a grid that when you click on the plus sign, is there a way to highlight the row with a specific color and make the neted view template the same color.  by this i mean the column that is using the plus sign.  I changed the color of my table to white but the nested table pads my table over to the right the with of the plus sign column.  Also, is there a way to show the plus sign only when the mouse is over the particular row.

I hope I explained this well enough.

Thanks in advance. 
Joshua

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 May 2008, 05:28 AM
Hi John,

Try the following code snippet to set back color of a row when it is expanded.

CS:
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        foreach (GridDataItem item in RadGrid1.Items) 
        { 
 
            if (item.Expanded) 
            { 
                item.BackColor = System.Drawing.Color.Red; 
            } 
        } 
        
    } 


Thanks
Shinu.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or