Author Topic: How do I undo a moveNode event  (Read 507 times)

jplevene

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 160
    • View Profile
How do I undo a moveNode event
« on: July 31, 2025, 03:11:02 pm »
If I drag and drop a node, but saving it on the server has an error, I want to be able to undo/revert the move.  How do I do this?

colModel = {
moveNode: function(event, uiDrop) {
  if(ajax_error)
       undo_this_move(uiDrop);
  }
}

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6420
    • View Profile
Re: How do I undo a moveNode event
« Reply #1 on: August 01, 2025, 02:57:08 pm »
Drag-and-drop operations in a treegrid support undo and redo functionality.

Although undo is not currently available in the plain grid, this capability is being introduced in the upcoming release.