RadGrid aggregate

2 posts, 0 answers
  1. Salman
    Salman avatar
    3 posts
    Member since:
    Nov 2018

    Posted 27 Nov 2018 Link to this post

    I have been searching for a solution for a while and have not found anything similar to my situation. I am using a RadGrid to display 5 columns, out of which the relevant ones for this question are Total, OrderDate and DeliveryDate columns. I want to SUM the Total under the Order Date and Delivery Date column footer respectively, based on two conditions: Order Date > Delivery Date (when this condition is met, Total for such rows is displayed under Order Date), and Delivery date = Order Date (when this condition is met, Total for such rows is displayed under Delivery Date.) Looking for possible ways to do this. Thank you in advance!
  2. Marin Bratanov
    Marin Bratanov avatar
    5800 posts

    Posted 28 Nov 2018 Link to this post

    Hello Salman,

    You need to create a custom aggregate function that will employ the desired rules. Here's an example of how to do that: https://www.telerik.com/support/kb/aspnet-ajax/grid/details/how-to-create-custom-aggregate-functions.

    Marin Bratanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top