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

RadGrid aggregate

1 Answer 9 Views
This is a migrated thread and some comments may be shown as answers.
Salman
Top achievements
Rank 1
Salman asked on 28 Nov 2018, 01:24 AM
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!

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Nov 2018, 05:18 PM
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.


Regards,
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.
Tags
Grid
Asked by
Salman
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or