How to calculate column sum in kendoGrid

3 posts, 0 answers
  1. Neeraja
    Neeraja avatar
    2 posts
    Member since:
    Mar 2020

    Posted 01 Mar 2020 Link to this post

    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. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 02 Mar 2020 Link to this post

    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
  3. Neeraja
    Neeraja avatar
    2 posts
    Member since:
    Mar 2020

    Posted 17 Mar 2020 in reply to Stefan Link to this post

    Thank you Stefan for your replay and consideration.
Back to Top