Getting dataProcessor to respond to Undo/Redo (manual mode)

I need to do like this post, but manualy.

I set my grid/dataProcessor to update only with a save button.

I’ve tryed to insert the code from the post above, but no success…

How can I do this?

You can try to use a code similar to the next

function myUndo(){
      var undo = grid.getUndo();
      if (undo.length) 
               dp.setUpdated(undo.pop().row_id, false); 
      mygrid.doUndo();
}

This works pretty well…

Thanks!!!