CellType Event Return oldValue is undefined

Posted by: dnguyenthanhtu on 22 November 2022, 4:03 pm EST

  • Posted 22 November 2022, 4:03 pm EST - Updated 22 November 2022, 4:08 pm EST

    I add a column when I click button add

    When I select a cell and change format for that cell the oldValue is null

    It seems I’m missing something.

    That image is the args in the cellchanged event

    The old value is undefined make me some issue

    Please explain for me what’s the issue happened?

    Thanks

  • Posted 23 November 2022, 5:12 pm EST - Updated 23 November 2022, 5:17 pm EST

    Hi,

    The argument “oldValue” specifies the old value of the property that has been changed. For example, if you change the formatter of the cell, then the “oldValue” specifies the old formatter applied to the cell. In that case, the “oldValue” doesn’t mean the cell old value.

    And when you change the “value” of the cell, the “oldValue” specifies the old value of the cell.

    Please refer to the following code sample: https://jscodemine.grapecity.com/share/eK9Z3WhVsUiJQUJfF3q25Q/

    Please let us know if you need further assistance on this topic. We would be happy to help you.

    Regards,

    Ankit

  • Posted 24 November 2022, 1:59 pm EST

    I think the default of formatter is “General”, not is undefined

  • Posted 27 November 2022, 3:08 pm EST

    Hi,

    The term “undefined” indicates that no formatting is applied to the cell. The “General formatter” is applied to the cell by default.

    If the formatter is undefined, the cell has been formatted with “General Formatter.” This is by design.

    Regards,

    Ankit

Need extra support?

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

Learn More

Forum Channels