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

How to calculate column sum in kendoGrid

2 Answers 1711 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Neeraja
Top achievements
Rank 1
Neeraja asked on 02 Mar 2020, 04:59 AM

I have an issue in my GridColumn, need to calculate sum of the cell input data and show in another cell.??!!

Please help me to find out the solution.

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 02 Mar 2020, 12:44 PM

Hello, Neeraja,

This can be achieved using a custom cell for a column:

https://www.telerik.com/kendo-react-ui/components/grid/api/GridColumnProps/#toc-cell

In that cell, you have access to the row data and can calculate and return the desired sum in the cell.

This is an example:

https://stackblitz.com/edit/react-pmh3xr?file=app/main.jsx

I hope this is helpful.

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Neeraja
Top achievements
Rank 1
answered on 18 Mar 2020, 03:55 AM
Thank you Stefan for your replay and consideration.
Tags
General Discussions
Asked by
Neeraja
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Neeraja
Top achievements
Rank 1
Share this question
or