1

I'm using an enhanced grid in Dojo and I would like to implement "Undo" functionality . For example after editing a cell, adding/deleting a row the user should be able to revert that action.

Any pointers how to get started?

Thanks!

piris
  • 1,547
  • 3
  • 22
  • 26

2 Answers2

1

Well maybe you could get inspiration from this Comand History pattern : https://gist.github.com/c210c0344ca4d4bdfacb

About the actions on DataGrid I assume you know what to do and you were just asking about some "undo mechanism" :)

I hope this will help. I've been using it for a while and it works well

PEM
  • 1,948
  • 14
  • 13
0

Fetch and save the grid store in some variable before editing . Upon clicking the undo button/link set the grid store with the saved old store.

Vinoth
  • 133
  • 2
  • 9