I can’t get the undo working properly.
This problem does not occur when I delete a node. Undo and Redo works fine for that.
Can you tell me what the problem is? I call the startTransaction before the layout method and end the transaction afterwards.
One thing I noticed. When I move a node and delete it (focus is still on that node) and do an undo, I can select it. But when i don’t delete the node I can’t select the nod when it lost focus.
We’ll investigate this. You’re using DataSetDemo with GoDiagram Web, right?
There is a bug in that relinking isn’t working in the web version of DataSetDemo – the GoView.LinkRelinked event handler seems to have disappeared. (Oddly, the VB version does have that event handler.)
Thanks for your replies.
I have found it.
I created a class that inhereted from the GoIconicNode. I used the class personNode from the DataSetDemo and made modifications to that. I removed some methods and properties.
When testing I removed the method “public override void ChangeValue” and everything worked.
I didn’t need that method because I don’t want the user be able to change values.
Ah yes, the ChangeValue method is critical to the operation of undo/redo.