Defer execution of functions in RadGridView Aggregate Result

4 posts, 0 answers
  1. Sintayehu
    Sintayehu avatar
    67 posts
    Member since:
    Jan 2013

    Posted 23 Sep 2014 Link to this post

    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?
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 26 Sep 2014 Link to this post

    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.
     
  3. DevCraft banner
  4. Sintayehu
    Sintayehu avatar
    67 posts
    Member since:
    Jan 2013

    Posted 26 Sep 2014 in reply to Dimitrina Link to this post

    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.
  5. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 01 Oct 2014 Link to this post

    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.
     
Back to Top