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

[Solved] How to customizing footer group (using sum() for subtotals)

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andres
Top achievements
Rank 1
Andres asked on 29 Jun 2009, 03:02 PM
Hi, How can I customize the group footers for to display only the groupings that I select and not all group footers??

Thanks for advance.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Jun 2009, 05:15 AM
Hi Aders,

One suggestion would be to access the GroupFooter using the GroupIndex . Then you may access the cell which contains the aggregate value and hide it accordingly as shown below.

CS:
 
 protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        int GroupIndex = 0; 
        GridGroupFooterItem footer = (GridGroupFooterItem)RadGrid1.MasterTableView.GetItems(GridItemType.GroupFooter[GroupIndex]; 
        ((System.Web.UI.WebControls.TableCell)(footer.Controls[3])).Text = string.Empty; 
    } 

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