ZIndex of dragged node

Hello! I need help with dragging of nodes.
I try to drag node and I expect that this node have the highest Z-Index. Current behaviour depends on the order when node was added.

3 Replies 1 reply marked as answer

RA Ranjitha Amirthalingam Syncfusion Team July 27, 2020 10:32 AM UTC

Hi Vadzim, 
 
Requirement: Need to update the ZIndex for the dragged node. 
 
We have support to achieve your requirement using NodeChanged event of SfDiagram. We have provided sample to represent this. Please refer to the sample from the following link. 
 
 
In this sample, we have hooked NodeChanged event to notify when a node is dragged. Then we have updated the Zindex values based on the requirement.  
 
 
Regards, 
Ranjitha A. 


Marked as answer

VS Vadzim Shchahlou July 28, 2020 07:52 AM UTC

Thank you very much! Your solution works perfect.


RA Ranjitha Amirthalingam Syncfusion Team July 28, 2020 09:02 AM UTC

Hi Vadzim, 
 
Most Welcome. 
 
Regards, 
Ranjitha A. 


Loader.
Up arrow icon