[GH-DEV #619] How to use summary plugin when table data changes?

Tags: #<Tag:0x00007f51b56dbf10> #<Tag:0x00007f51b56dbdd0>

I’m experiencing an issue with the Column Summary plugin in Ant Design when resetting the table data dynamically.

Problem Description:

  1. Initially, the table has 3 rows, and the summary row is correctly positioned on the 4th row.
  2. When I replace the table data with a new dataset that has 4 rows, the summary row moves to the 5th row, which is expected.
  3. However, the previous 4th row (from the old dataset) is incorrectly treated as a summary row instead of being replaced.

Example (JSFiddle):
I’ve created a reproducible example: https://jsfiddle.net/f4dnLmto/

Expected Behavior:
1.When resetting the table data, the summary row should always be appended to the last row correctly.
2. The old summary row should be completely removed and not persist in the new dataset.

Question:
How can I correctly apply the summary plugin so that it properly updates when reloading the table data?

Any help or suggestions would be greatly appreciated!

Hi @haoliu

Thank you for sharing the bug report.

It happens because of the issue reported on our official GitHub board at https://github.com/handsontable/handsontable/issues/3597. Until the issue is fixed (which I will inform you about when it’s ready), I recommend using Formulas instead.

Thanks you , i will try with Formulas