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

Auto Update

1 Answer 11 Views
Wrappers for React
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Veteran
Nick asked on 17 Jul 2020, 02:22 AM

Hi All

New to react in general but I have a grid up and running with a footer using a function to perform a simple sum (as per the below)

 

This is all working fine on data load, but if I update any values and even update the state it does not seem to trigger an update to the cell totals in the footer. would there be anything that I could be missing here or have to call?

const CellTotals = (props) => {
  const sum = products.reduce(
    (acc, current) => add(acc, current[props.field]),
    0
  );
  return (
    <td colSpan={props.colSpan} style={props.style}>
      {formatMoney(sum)}
    </td>
  );
};

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 20 Jul 2020, 09:17 AM

Hello Nick,

The reason for current behavior could be using the Kendo UI wrappers for React. If this is the case I would strongly suggest to upgrade to the native Kendo React Grid as the KendoUI wrappers for React are no longer maintained:

If this is not the case could you please provide runable example in StackBlitz where the issue is reproduced? This would help us get better overview of your current setup and advice you better how to proceed.

Regards,
Vladimir Iliev
Progress Telerik

Tags
Wrappers for React
Asked by
Nick
Top achievements
Rank 1
Veteran
Answers by
Vladimir Iliev
Telerik team
Share this question
or