MVC Core Kendo Grid Total rows

1 Answer 920 Views
Grid
Gaysorn
Top achievements
Rank 1
Iron
Gaysorn asked on 28 Feb 2022, 11:04 PM

Hi, 

I'm working with Kendo Grid with MVC Core. I try to do the total rows (picture below) for 2 columns

Total Tax Rate (line 8) = line 1 + 2 + 3 + 4 + 5 + 6 for column d and e

Net Tax Rate (line 10) =  total of line 8 - line 9 for both column d and e

The users want to see new calculate total every time they make some changes. Any suggestion how to handle this requirement.

Thank you.

Gaysorn
Top achievements
Rank 1
Iron
commented on 01 Mar 2022, 04:40 PM

Note: Grid setting

GridEditMode.InCell

DataSource: Batch(true)

ServerOperation(false)

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 03 Mar 2022, 11:10 AM

Hello Gaysorn,

I would recommend you to use the ClientFooterTemplate to display the aggregated values. You can either use the built-in aggregates or define your custom functions that calculate the aggregates and use them within the footer template.

For better understanding, please take a look at the following demo:

I hope this helps.

Regards,
Georgi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Gaysorn
Top achievements
Rank 1
Iron
Answers by
Georgi
Telerik team
Share this question
or