Coder Social home page Coder Social logo

Comments (4)

AlexK0210 avatar AlexK0210 commented on May 29, 2024 1

@komarovalexander yep, will do it a while

from ka-table.

komarovalexander avatar komarovalexander commented on May 29, 2024

Hi @AlexK0210
Thanks for feedback!
May I ask you to fork one of these stackblitz examples
ts https://stackblitz.com/edit/table-add-row-ts-geh46e?file=Demo.tsx
or
js https://stackblitz.com/edit/table-add-row-js-gfpwvc?file=Demo.js
and give the link with the reproduced issue

from ka-table.

komarovalexander avatar komarovalexander commented on May 29, 2024

Hi @AlexK0210
You have to use updateEditorValue and it will work fine:
https://stackblitz.com/edit/table-add-row-ts-yprynw?file=Demo.tsx
Thanks for the question again! let me know if you have any issues

from ka-table.

KarthikHebbarMN avatar KarthikHebbarMN commented on May 29, 2024

Hey, I'm stuck in a similar issue. Using updateEditorValue solves the issue of a new row being created below. But with custom editor and custom display cell case 'keyType': return <KeyTypeDisplay {...props} />; where the dataType is a type of DataType.Object.
after setting updateEditorValue, the Display component is receiving the 'value' as undefined and 'rowKeyValue' also as 'undefined' (same Table component passes 'rowKeyValue' as an empty object ({}) for editor.). So what ever value is set in editor is not being sent to the display cell when adding new row.

Kindly let me know I am going wrong anywhere.

Thanks

from ka-table.

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.