Open skedus opened 15 hours ago
Hello,
Thanks for your thoughts and your example,
I have decided to add edit validation checks to undo / redo for cell edits. The logic is basically that undo and redo are user actions, in the same way that cut, delete and paste are and perhaps there has been changes to the validation since the action or something
The work should be completed this week sometime
About the old values being in the event data -
If its not an edit validation bound event, but a post action event such as with the extra_bindings
you've got in your example you should be able to use the coordinates of the cell edits in the event data to get the new values from the sheet
Kind regards
Hi, For each cell edition I need to process an external action, the validate_edit callback is working fine for it for most edition (perfect :-) ). Now I try to manage the "undo" it seems that the validate_edit is not use. I tried the documented command:
during undo the self.sheet_modified is well call but I have no indication of the cells modified with the new values (only old values)
I tried as well extra_binding end_undo but this is the same event as self.sheet_modified
Is there a way to manage each cell undo such validate_edit, with the cell row,col and new value of the cell ? Thank you
Here below the simple code I use to display event. 1 - I modify a cell 2 - Ctr-z to make the undo