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

customize the footer aggregate texts

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryann
Top achievements
Rank 1
Ryann asked on 02 Dec 2013, 01:22 PM
Hi,
How to customize the footer aggregate texts.?

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Dec 2013, 01:27 PM
Hi Ryann,

Please try the following code snippet.

C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{     
  if (e.Item is GridFooterItem)
  {
    var item = e.Item as GridFooterItem;
    TableCell cell = item["ColumnUniqueName1"];
    cell.Text = cell.Text.Replace("Sum", "Total");
    TableCell cell1 = item["ColumnUniqueName2"];
    cell1.Text = cell1.Text.Replace("CountDistinct", "Distinct ID");
  
}

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