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

Sum with roll-up in Self-referencing grid

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thanh Dang
Top achievements
Rank 2
Thanh Dang asked on 08 Apr 2010, 07:36 PM
Hello,

Is there a way to sum values from children to parent in self-referencing grid? 
In my situation, the self-referencing grid nodes, when collapsed, the value of the parent node would be total of its children's values.
Grid's data is bound from a SqlDataSource.

Thanks for any help. 

Thanh Dang

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 14 Apr 2010, 06:22 AM
Hi Thanh,

One possible approach in this case would be to iterate through all the items in the control. The following topic contains more information on the matter:

http://www.telerik.com/help/aspnet-ajax/grdhideexpandcollapseimageswhennorecordsinselfreferencinghierarchy.html

Within each tableView, you can access the Items collection, to get a reference to all the items in the control.
I hope this information helps.

All the best,
Yavor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Thanh Dang
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Share this question
or