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

Retrieve value from aggregate

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Savyo
Top achievements
Rank 1
Savyo asked on 10 Jul 2012, 01:54 PM
Hi,
     I want to retrieve the value from aggregate and show the value as a label text in another place. How do i manage this. Anybody got idea? Pls share
Thanks and Regards
Savyo

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Jul 2012, 01:55 PM
Hi,

Please try the following code snippet for the desired functionality.

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["UniqueName"].Text;
   Label label1 = new Label();
   label1.Text = value1;
 }
}

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