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

GridGroupFooterItem styling

4 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric Schoenholzer
Top achievements
Rank 2
Eric Schoenholzer asked on 09 Dec 2008, 11:27 AM

Hi, Where I can add/change styling for the GridGroupFooterItem?

 

Thanks

Eric

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Dec 2008, 12:06 PM
Hello Eric,

You can style the GroupFooter as shown in the code below:
cs:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridGroupFooterItem) 
        { 
            GridGroupFooterItem groupFooter = (GridGroupFooterItem)e.Item; 
            groupFooter.Cells[3].Text = "Groups"
            groupFooter.Cells[3].ForeColor = System.Drawing.Color.Red; 
        } 
    }

Thanks
Princy.
0
Eric Schoenholzer
Top achievements
Rank 2
answered on 09 Dec 2008, 12:09 PM

Thanks Princy,

Any way to do it declarativly, in ASPX ?

 

Eric

0
Accepted
Yavor
Telerik team
answered on 09 Dec 2008, 12:23 PM
Hi EricSch,

The group footer's style is set in the GridGroupFooter_SkinName style class, so you can override it locally, to set the desired properties.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Eric Schoenholzer
Top achievements
Rank 2
answered on 09 Dec 2008, 12:57 PM
Princy,

I needed to call 
groupFooter.ForeColor = System.Drawing.Color.Red; 

Cell[3] didn't work.

Thanks
Eric
Tags
Grid
Asked by
Eric Schoenholzer
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Eric Schoenholzer
Top achievements
Rank 2
Yavor
Telerik team
Share this question
or