You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Is there any way to clear the undo or redo stack?
I have setup the grid programmatically and i want to be able use the undo and redo but i want to clear the stack before they enter any information in because i want to keep the format the way i created it.
Shane
Offline
Currently there is no way to clear undo/redo stack, for solve this a new method 'ClearActionHistory' will be added in next version.
And I'd like to recommend you that use methods such as 'SetRangeDataFormat' rather than 'DoAction' to setup a grid, the 'DoAction' method will put actions into stack but other normal APIs will not.
Last edited by Jingwood (2014-08-25 07:51:32)
Offline
Thank you.. for your help and response
So if want to add data to the cell i would use this grid.SetCellData("A1", "Text") instead of grid.cells("A1").Data = "Text", correct
Update: I have test it and does with the setcelldata also..
Last edited by asparatu (2014-08-25 09:02:32)
Offline