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

The `setSourceDataAtCell` doesn't works on children

robertovaldesperez opened this issue · comments

Describe the bug

When you try to change a child cell, it always change the parent.

Video/Screenshots

image

I think the problem is here:

image

this.data always refers to the parent

Provide a link to the demo with the bug reproduction

No response

Handsontable version

14.0.0

Framework version

No response

Your environment

Windows 11

You're right @robertovaldesperez

method execution

hot.setDataAtRowProp(1, 'artist', '-------');
hot.setSourceDataAtCell(1, 'artist', '*******');
console.log(hot.getSourceData())

The getSourceData

Zrzut ekranu 2023-12-13 o 15 06 14

Table outcome

Zrzut ekranu 2023-12-13 o 15 06 21

Demo https://jsfiddle.net/0x4sycrz/

I'll check that internally and come back to you.

Hi @AMBudnik, We have been trying to implement various functionalities with nestedRows for several months and we have not been able to, because we need support for:

  • Rows sorting
  • Column filtering
  • setSourceDataAtCell does not work
  • Formulas are not rerendered if you add a new child
    image
  • If data is empty hansontable throw exception
    image
    image

We need to support different functionalities that have been delayed for several months with the nestedRows option as soon as possible. Would you be so kind as to help us? Thanks a lot

Hi @robertovaldesperez

the nestedRows functionality does not support those features yet. That is described in our known limitations in the plugin's guide at https://handsontable.com/docs/react-data-grid/row-parent-child/

Zrzut ekranu 2023-12-15 o 08 58 01

Please write us at support@handsontable.com. We can organize a call and discuss the options.