Undo and Redo methods not emitting events

I need to track changes done by undo/redo so I can update them in our tables. I am able to accomplish this with Ctrl + Z and Ctrl + Y, as these hotkeys will emit the actionComplete event of action type undoRedo.


However, when I call the methods programmatically like so:

this.spreadsheetObj.redo();

It does not emit actionComplete, nor any other event that I can find in the documentation. Is there a way for me to capture the cells that are changed by these methods?


4 Replies

SP Sangeetha Priya Murugan Syncfusion Team January 7, 2022 03:46 PM UTC

Hi Erik, 

 
Currently we haven’t provide support to emit actionComplete event for public methods (Undo/Redo) in our EJ2 Spreadsheet. However, please share the below details to check further 

 
1. What do you need to customize the actionComplete event for undo/redo action 
2.Please share the detailed description of this requirement. 
3.If possible please share the sample, video demonstration or screenshots about your requirement. 

 
Could you please check the above details and get back to us with the above requested information, based on that we will check and provide you a better solution quickly. 

 
Regards, 
Sangeetha M 



ES Erik S replied to Sangeetha Priya Murugan January 7, 2022 05:28 PM UTC

Hi Sangeetha,

Thanks for getting back to me. I need a way to determine which cells/ranges were changed by an undo or redo action, and I need a way to confirm that it was an undo/redo action that was performed. I can then get the values in those ranges using the getData method, and update our tables. This needs to include copied/pasted ranges in case a cut/paste was undone/redone.

In the attachment I have a screen shot showing the actionComplete event for Ctrl + Z/Y, this is what I am currently using. There is an example of the event when using cut/paste, and when saving cell. 

Thanks!


Attachment: ActionComplete_b4fd73.7z


SP Sangeetha Priya Murugan Syncfusion Team January 10, 2022 04:06 PM UTC

Hi Erik, 
 
We need to validate more on your reported issue, so we will update you the further details on January 12th, 2022. 
 
Regards, 
Sangeetha M 



SP Sangeetha Priya Murugan Syncfusion Team January 12, 2022 06:02 PM UTC

Hi Erik, 
 
We have checked your reported requirement and considered this as an improvement, and it will be available in any of our upcoming releases. Because, we have planned the features accordingly for our Essential Studio releases based on priority only. You can track the status of this feature using below link from our feedback portal,    
   
 
In this we have triggered the events, for public methods and to differentiate the UI interaction and public method calling, we will provide a property in event arguments. 
 
Could you please check the above details and get back to us, if you need any further assistance on this. 
 
Regards, 
Sangeetha M 


Loader.
Up arrow icon