This is a migrated thread and some comments may be shown as answers.

Snapping to connectors?

1 Answer 104 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 29 Aug 2013, 11:55 AM
You have IsSnapToItemsEnabled and IsSnapToGridEnabled. Neither of these snaps to connectors (custom-positioned connectors). I believe snapping is pretty useless if you cannot snap in such way that connections are perpendicular lines.

E.g. This is what it looks like when snapping is enabled. No matter what, the line between the connectors will be non-perpendicular.

[------------------C------------------]
                        \
      [--------------C--------------]

Moving to the left snaps to a new grid line:

[------------------C------------------]
                       /
    [--------------C--------------]

What I want is this:

[------------------C------------------]
                       |
    [--------------C--------------]


Can you please add such a feature? You have to agree that it makes sense to have this. Thanks.

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 03 Sep 2013, 08:54 AM
Hi Kristoffer,

As far as I understand you need to be able to align (in the middle) RadDiagramShapes with different sizes so that the connection between will be straight lines. You are right that with the current implementation of the snapping feature you are not allowed to snap the shapes in the middle.

Please note that currently the shapes are snapped only to the edges of other shapes and the background grid. This is so, because if we snap the shapes to more additional points, like middle of shape, the performance will decrease.

However, I will make sure that we will consider if we can implement such additional snapping and keep the performance of the RadDiagram framework as high as possible. Please stay tuned for new feature request so you can follow it if we decide to log it into our PITS.

Till we further investigate this request you can use the align method of the RadSettingsPane. Please take a look at this demo where we demonstrate how you can use the RadSettingsPane.

Basically, If you select many shapes and open the RadSettingsPane, you can navigate to the Home tab of the control and then click on the Arrange button. After that you will be able to choose alignment option. In your scenario you can choose middle or center.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Diagram
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or