Our blazing fast Grid component built with pure JavaScript


Post by fcoca »

Hi Team,

Looks like https://www.bryntum.com/docs/grid/api/Core/data/Store#function-revertChanges is not working for number columns that have undefined value.
The same is working for text columns and for number columns that have a null value.

You can recreate it in this playground:
https://codepen.io/javicloud/pen/ExvWVOB

Steps to recreate in the attached recording.

Regards
Javi

Attachments
video1955728394.mp4
(990.1 KiB) Downloaded 56 times

Post by alex.l »

Looks like a bug, here is a ticket to track the status: https://github.com/bryntum/support/issues/3938

Thank you for the report. Actually it looks like there is a problem on renderer level, store data is fine. So, if it gets undefined as a value, it has a problem with rendering.

Here is an example of workaround for a meanwhile:

    columns: [
      { field: "name", text: "Name" },
      { field: "job", text: "Job", renderer: ({ value }) => value || '' },
      { field: "age", text: "Age", type: "number", value: 0, renderer: ({ value }) => typeof value === 'number' ? value : ''}
    ],

All the best,
Alex


Post by fcoca »

Thanks!


Post Reply