getCellData in cellEditEnding returns wrong values?

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

  • Posted 30 July 2020, 2:00 am EST


    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)

    could you please advise?

    Many thanks

    Kind regards,
  • Replied 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:

Need extra support?

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

Learn More

Forum Channels