Posted 19 September 2017, 1:13 am EST
How do I implement Undo (ctrl + z) to flexgrid? Thank you very much.
Forums Home / Wijmo / General Discussion
Posted by: grapecity on 19 September 2017, 1:13 am EST
Posted 19 September 2017, 1:13 am EST
How do I implement Undo (ctrl + z) to flexgrid? Thank you very much.
Posted 20 September 2017, 3:54 pm EST
Hi Hoang,
This feature is not supported in FlexGrid. This feature can be used in FlexSheet.
However, if you would like to use this feature, you need to handle cellEditEnded and pastingCell event to get the changes and store in an array. And make the changes back on Ctrl+z key combination press by handling the keydown event.
Thanks,
Manish Kumar Gupta
Posted 21 September 2017, 12:39 am EST
Thank you sir.
Posted 21 September 2017, 12:55 am EST
By the way, where can I find documentation on keydown event sir? I am looking in here but cannot find it:
http://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.grid.FlexGrid.Class.html
Posted 22 September 2017, 1:34 am EST
Hi Hoang,
Please use the following code snippet for the same:
this.flex.hostElement.addEventListener("keydown",(e)=>{
alert("key down");
});
Thanks,
Manish Kumar Gupta
Posted 5 October 2017, 12:42 am EST
Hi,
Is there a chance that this will be implemented for FlexGrid in the following releases ?
That’s a great functionality, but converting the FlexGrids of an entire app to FlexSheets would be painful, especially for something that would make sens to have everywhere.
If I’m not wrong, your PureJS sample work with flexgrid (because it’s form based), so it doesn’t seems unfeasible
http://demos.wijmo.com/5/PureJS/UndoStack/UndoStack/
Thanks a lot for your answer.
Posted 9 October 2017, 3:42 pm EST
Hi,
Please refer to the Blog from Bernardo on undo stack functionality that depicts why this could not be implemented in FlexGrid. There is some possibility to release FlexGrid with this functionality with a different module.
https://www.grapecity.com/en/blogs/easy-undo-redo-for-html-forms
~Manish Kr Gupta
Posted 16 November 2018, 4:34 am EST
Hi - could I get an update on this for 2018?
Is ‘ctrl-z’ functionality still not possible in FlexGrid?
Does this apply to all instances of ‘undo’? For instance, what if instead of ‘ctrl+z’, I wanted to have a button the user could click which could undo the last action. Is this type of functionality built into FlexGrid?
Posted 10 April 2022, 7:13 am EST
The Information you shared above is great. I have been reading all you shared here. In this you explained everything very well. If i want any further guideline we will contact you here https://www.grapecity.com/forums/wijmo/undo https://floridaloteryresults.com/
Posted 10 April 2022, 2:38 pm EST
HI
Thank you for notifying me about the help you get from this thread.
Regards,
Manish Gupta