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

Totaling hierarchical data

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Drew
Top achievements
Rank 1
Drew asked on 02 May 2012, 07:45 PM
I have a Grid on an aspx page that displays some hierarchical data.  I would like to total one column of the sub table and then subtract it from a column in its parent row and display the results in the sub table footer.  Is that possible, and if so, how do I go about it?

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 07 May 2012, 08:57 AM
Hello Drew,

You could achieve your scenario but it is not a trivial implementation. The required steps are described below:

  • Subscribe to RadGrid PreRender event

  • Manually retrieve and calculate the result values and set the appropriate Text property of the column footer item. Note that you could go through the Accessing Cells and Rows in order to help you through the process of implementation and accessing items

All the best,
Antonio Stoilkov
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
Drew
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or