Snapping to connectors?

2 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 29 Aug 2013 Link to this post

    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.


    Moving to the left snaps to a new grid line:


    What I want is this:


    Can you please add such a feature? You have to agree that it makes sense to have this. Thanks.
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1236 posts

    Posted 03 Sep 2013 Link to this post

    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.

    Pavel R. Pavlov
    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 >>
Back to Top