CellEditUndoAction

Posted by: Bryan.Graves on 12 December 2019, 12:32 pm EST

    • Post Options:
    • Link

    Posted 12 December 2019, 12:32 pm EST

    We have created a custom class for CellEditUndoAction. We want to use these for certain cells that we edit and use the default CellEditUndoAction class for all other cells.

    Is there a way to overload the method that creates the EditCellUndoAction objects so that we can determine if we want to use CellEditUndoAction or our CustomCellEditUndoAction class?

    If so, could you give an example of the method?

  • Posted 13 December 2019, 5:25 am EST

    Hi,

    The UndoActions are added to UndoManager’s queue internally, so it’s not possible to add a custom action at that moment.

    However, UndoManager raises ActionComplete event when the corresponding action for an UndoAction is completed. You can use this event to add your custom UndoAction in place of CellEditUndoAction.

    Please see the attached sample which shows this approach.

    OverloadedSpreadActions.zip

    Regards,

    Jitender

Need extra support?

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

Learn More

Forum Channels