double click event for nodes

How can I handle double click on node?


1 Reply

SU Sumathi Uthayakumar Syncfusion Team November 28, 2023 07:00 AM UTC

Hi Cemil,


In the SfDiagramComponent, we have a Click event that notifies when an object or diagram is clicked. The ClickEventArgs returns ActualObject, Element, Button, Count, and Position. ActualObject is used to retrieve the object to be clicked on. It returns null when there is no object present in the clicked position. Element is defined as the object if the clicked position has an object, otherwise it returns the diagram. Button is defined as the mouse button that needs to be clicked. Count is defined as the number of times the object or diagram needs to be clicked. Position is defined as the clicked position within the diagram. By utilizing this event, you can obtain the click count and perform any desired action. We have included a UG link for your reference.


https://blazor.syncfusion.com/documentation/diagram/events#click-event



Regards,

Sumathi U.


Loader.
Up arrow icon