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

radgrid aggregate

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phillip
Top achievements
Rank 1
Phillip asked on 02 Nov 2011, 07:00 PM
Can I retreive the value used for the aggregate and place it inside of a literal?  I would like to display the aggregate on a another place in the page.  Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Nov 2011, 04:56 AM
Hello Phillip,

You can try the following code snippet.

C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
 if (e.Item is GridFooterItem)
 {
   GridFooterItem fitem = e.Item as GridFooterItem;
   string value1 = fitem["EmployeeID"].Text;
   Literal lit = new Literal();
   lit .Text = value1;
 }
}

Thanks,
Princy.
Tags
Grid
Asked by
Phillip
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or