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

Recalculate group aggregates after updating dataitems in dataSource

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jacques
Top achievements
Rank 2
Jacques asked on 20 Jan 2014, 05:52 AM
We're dynamically updating values in the dataSource of a grid using it's dataSource.data() method and whilst the Total aggregate seems to work, the group aggregates don't update. 

Is there a way to force these calculation to be executed after the data() method is called? 

Thanks,
Jacques

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 22 Jan 2014, 08:48 AM
Hello Jacques,

If you update the model properties with the set method and the Grid is not using serverAggregates (which is by default), then the grid should be redrawn automatically. In case the Grid is using serverAggregates then you will have to invoke the read method of the dataSource in order to update the aggregates.


Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Jacques
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Share this question
or