For RadDiagram connections, how do I tell if a point has been added?

1 Answer 89 Views
Diagram
Pete
Top achievements
Rank 2
Iron
Iron
Iron
Pete asked on 19 Aug 2021, 08:44 AM
I can see event handlers for Move and Remove a point on a connection but not for add. There's code for ConnectionManipulationStartedCommand and ConnectionManipulationCompletedCommand which gives us move and remove but is there one for adding a point?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 23 Aug 2021, 11:15 AM

Hello Pete,

Thank you for the provided image.

You can use the CommandExecuted event to check when a point is added to a connection.

 this.diagram.CommandExecuted += Diagram_CommandExecuted;

 private void Diagram_CommandExecuted(object sender, CommandRoutedEventArgs e)
        {
            if (e.Command.Name == CommandNames.ModifyConnectionConnectionPoints)
            {

            }
        }

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Diagram
Asked by
Pete
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or