handsontable / handsontable

JavaScript data grid with a spreadsheet look & feel. Works with React, Angular, and Vue. Supported by the Handsontable team ⚡

Home Page:https://handsontable.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: formula updated BUT cannot be catch,like afterChange(),afterSetDataAtCell(),afterFormulasValuesUpdate()

yanyinqing opened this issue · comments

Describe the bug

if I move some rows,orther use this cells to make formula,they will change,but you cannot catch this change.
for example,I make a formula(=A1) in B3,and A1 is number 5,if I move first row from index 1 to index 2,the formula belong to B3 have a change,(=A2),I cannot catch this change

Video/Screenshots

No response

Provide a link to the demo with the bug reproduction

No response

Handsontable version

14.0.0

Framework version

vue2

Your environment

edge,macos

Hi @yanyinqing

In your case, I think the afterRowMove hook might be helpful. Please take a look at this example and let me know if that meets your requirements: https://jsfiddle.net/handsoncode/cje06gmx/

Hi @yanyinqing

In your case, I think the afterRowMove hook might be helpful. Please take a look at this example and let me know if that meets your requirements: https://jsfiddle.net/handsoncode/cje06gmx/

What I mean is that there may be multiple references to this cell, and I cannot record all of them and search for their new formulas in afterRowMove

你好

就你而言,我认为钩子可能会有所帮助。请看一下这个例子,让我知道它是否符合你的要求:https://jsfiddle.net/handsoncode/cje06gmx/`afterRowMove`

What I mean is that there may be multiple references to this cell, and I cannot record all of them and search for their new formulas in afterRowMove

and ,delete row ,add row have this bug ,too

Hi @yanyinqing

HyperForumla has a native method for creating a dependency graph: https://hyperformula.handsontable.com/guide/dependency-graph.html#getting-the-immediate-dependents-of-a-cell-or-a-range

However, it still will need to be checked in the afterRowMove hook to get updated data.

Can you also tell me more about what bug exactly you have with deleting/adding rows?

Hi @yanyinqing do we have any updates regarding this issue report?

Hi @yanyinqing @adrianszymanski89 I also have this problem, can you tell me how to solve this problem?

Hi @yanyinqing @adrianszymanski89 I also have this problem, can you tell me how to solve this problem?

At present, I am using algorithms to calculate the approximate range that will be affected, and I have not yet studied whether there are new ways to update their versions

Hi @lin199303

Can you describe your use case?

Issue closed due to inactivity.