Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 07, 2008 07:11
open dhtmlx forum
dhtmlxGrid undo/redo

I have the following code for undo/redo which doesn't seem to work.
//Include script
<script src="/javascripts/dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_undo.js"></script>

<input id="undobutton_65" type="button" value="Undo" onclick="mygrid_65.doUndo();"/>
<input id="redobutton_65" type="button" value="Redo" onclick="mygrid_65.doRedo();"/>
.......
mygrid_65.init();
var js_65 = {"rows":[]}
mygrid_65.parse(js_65,"json");
mygrid_65.enableUndoRedo();
Answer posted by Support on Nov 10, 2008 02:41
The code above looks correct and must work correctly
Beware that undo|redo operations limited to cell edit actions only and can restore changes created by user actions only ( cell edit, block paste ) and can't be used against changes made through API