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

GroupFooter problem

1 Answer 25 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lasly
Top achievements
Rank 1
Lasly asked on 15 Oct 2012, 02:01 PM
Hi!
i have a radgrid with a double grouping.
i need to retrieve the value of header group and insert it into the footer group.
it's possible?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 18 Oct 2012, 11:02 AM
Hello Lasly,

Could you please try the following approach?
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridGroupHeaderItem)
    {
        text = (e.Item as GridGroupHeaderItem).DataCell.Text;
    }
    else if (e.Item is GridGroupFooterItem)
    {
        (e.Item as GridGroupFooterItem)["OrderID"].Text = text;
    }
}

I hope this will prove helpful. If you have different requirements or further instructions, please elaborate on your requested behavior.

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Lasly
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or