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

[Solved] Refresh Aggregates for a given group

2 Answers 219 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 17 Feb 2011, 11:06 PM
Is there a way to refresh the aggregate values for a group when a data item in that group has been updated? I have templates for my footer cells that are bound to the aggregate results. But when a data item in that group is updated the aggregates are not recalculated. If I try to call grid.grdProjSummary.InnerDataGrid() the source IEnumerable passed into my custom aggregate function is all items in the grid..

Marty

2 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 23 Feb 2011, 03:07 PM
Hello Martin,

Would you please send us a sample project via support ticket, in order to help us provide you a solution for your very case?

Greetings,
Ivan Ivanov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
MiddleTommy
Top achievements
Rank 1
answered on 23 Feb 2011, 07:09 PM
I too have found group footer rows to not update their values when INotifyPropertyChanged has been called.

As a work around I have either had to call rebind on the grid after cells have ended edit or I have my users click on a button to refresh the calculations (calling rebind)

For me this happens when a cell being edited causes a different cell or multiple cells values to change.
Especially when the cell's value that changed is on a different row.

I have also found Group footer sum rows to recalculate correctly and the Cell value to not be updated
Tags
GridView
Asked by
Martin
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
MiddleTommy
Top achievements
Rank 1
Share this question
or