You can use the OutgoungLinks and the IncomingLinks collections of the RadDiagramShape control to traverse all the connections going in out and in of a shape. In order to reset the UseGlidingConnector property you will first need to detach all connections, force the shape to use default connectors (RadDiagramShape.UseDefaultConnectors = true) and reattach the connections.
As for the undo action, it is not supported out of the box. This means that you will need to manually implement the command that will be executed on undo. In order to do so, you can take advantage of the UndoableDelegateCommand. You can use the following snippet to understand how you can use it.
UndoableDelegateCommand myCommand =
"Name Of My UndoRedo Command"
I hope that this will be helpful.
Pavel R. Pavlov
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.