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

Defer execution of functions in RadGridView Aggregate Result

3 Answers 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sintayehu
Top achievements
Rank 1
Sintayehu asked on 23 Sep 2014, 07:27 PM
I have a grid that has more that 100K records. I noticed that the custom functions in the Aggregate Results execute when filtering, sorting, reordering, etc ... 

This as you can imagine slows the grid.

Is there a way to defer execution of this functions? Example DeferToAfterFiltering?

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 26 Sep 2014, 08:01 AM
Hi,

I am afraid it is not possible to suspend the update of the aggregate results. Once a CollectionChanged notification is raised and such will be raised when filtering, sorting, etc, all the data results will be updated.

Regards,
Dimitrina
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Sintayehu
Top achievements
Rank 1
answered on 26 Sep 2014, 02:45 PM
Well this is an issue. subscribing to a collection change is fine and dandy but calculating summary before rows are rendred is just not cool.

I am not sure if you guys tested this but collection changed doesnt mean rows rendering is complete.

I suggest you guys have an event for row rendering done. (And no not DataLoaded).
Also an option for the summaries to be calculated after filtering and row rendered would be great.
0
Yoan
Telerik team
answered on 01 Oct 2014, 11:35 AM
Hello,

Indeed we do not have a out-of-the-box solution for your problem. However, here is something you can try - you can clear the aggregates results in GridView's Sorting/Filtering event. Then on Sorted/Filtered you can recalculate the by using GridView's CalculateAggregates method.

Regards,
Yoan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Sintayehu
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Sintayehu
Top achievements
Rank 1
Yoan
Telerik team
Share this question
or