getCellData in cellEditEnding returns wrong values?

Posted by: mauro on 30 July 2020, 2:00 am EST

    • Post Options:
    • Link

    Posted 30 July 2020, 2:00 am EST

    Hi

    I am using the latest version of Wijmo FlexGrid with the new editor column property for custom editors and looks like the

    getCellData in cellEditEnding returns wrong values:

    flexGrid.cellEditEnding.addHandler((grid, e) => {

    let oldVal = grid.getCellData(e.row, e.col);
    let newVal = grid.activeEditor.value;
    console.log("old value", oldVal)
    console.log("new value", newVal)
    

    })

    }

    https://codesandbox.io/s/hardcore-cherry-dl5gu?file=/src/App.js:599-841

    could you please advise?

    Many thanks

    Kind regards,

    Mauro

  • Posted 30 July 2020, 2:03 am EST

  • Posted 30 July 2020, 7:12 pm EST

    Hi Mauro,

    This seems like a bug in the editor property. I have forwarded this to the dev team with internal tracking id 455796. I will update you once this issue is fixed.

    In the meantime, as a workaround, you can use the _edtClone property of CollectionView to get the previous value. Refer to the updated sample below:

    https://codesandbox.io/s/solitary-water-3eouo?file=/src/App.js

    Regards,

    Ashwin

  • Posted 5 August 2020, 11:34 pm EST

    Hi Mauro,

    The issue has been fixed in the latest nightly build of Wijmo. You may verify the same using the sample link below:

    https://codesandbox.io/s/magical-leaf-fi0d9

    Note that nightly builds have not passed through the QA cycles as all of our release builds do.

    ~regards

  • Posted 5 August 2020, 11:43 pm EST

    Thank you

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels