Git Product home page Git Product logo

Comments (2)

watchingfun avatar watchingfun commented on May 25, 2024 1

Thank you for your answer. The problem was caused by my misunderstanding of the documentation, so I could add new rows via hot.alter('insert_row', hot.countRows()); and then set the row data via setDataAtRowProp

from handsontable.

AMBudnik avatar AMBudnik commented on May 25, 2024

Hi @watchingfun

The spliceRow(), as mentioned in the documentation at https://handsontable.com/docs/react-data-grid/api/core/#splicerow, is made for arrays (not objects).

Zrzut ekranu 2024-04-24 o 09 27 26

Underneath it calls thepopulateFromArray method https://github.com/handsontable/handsontable/blob/56d54d6e98da2b4d376829cb4077f4dea7b4a131/handsontable/src/dataMap/dataMap.js#L690C14-L690C31

so to add columns with data you'd need to alter the data object or change the columns settings and then add data, for example with the setDataAtCell() or setDataAtRowProp.

from handsontable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.