How I can remove connections when I remove the item which it connected

1 Answer 48 Views
Diagram
Mickael
Top achievements
Rank 1
Mickael asked on 19 Oct 2021, 08:35 AM | edited on 19 Oct 2021, 11:44 AM

This issue concern the RadDiagram control.

I would like to know how I can delete connections that are not related to their element. When I delete an element, their connections are not deleted.

Example:

I have an element called A and an element called B.

I connect A to B with a connection.

When I delete B, the connection is not deleted.



Is there a raddiagram parameter that allows me to delete connections when I delete an element?



The solution I currently use is the overriding command.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 21 Oct 2021, 10:01 AM

Hello Mickael,

There is no built-in option that allows auto-deleting the connections attached to the deleted shape. In order to achieve this you will need to manually remove the associated  RadDiagramConnection elements from the diagram when a shape is deleted. 

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Diagram
Asked by
Mickael
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or