How to set drag image while dragging a node

I was trying to set drag-image while drag-start a node in TreeView.
But the ev.dataTransfer object is coming up undefined and I couldn't even find the originalEvent object.

Can you please give an answer?

1 Reply

IL Indhumathy Loganathan Syncfusion Team January 19, 2021 01:48 PM UTC

Hi Rishabh, 
 
Greetings from Syncfusion support. 
 
We have validated your requirement with TreeView component. We have achieved drag and drop events using mouse up, mouse down and mouse over events in our TreeView control. We have not used native drag and drop events, so we couldn’t get the dataTransfer object within drag event.  
 
Please share us the exact details of your requirement on TreeView. This will help us to provide a prompt solution by customizing the dragged node of TreeView. 
 
Regards, 
Indhumathy L 


Loader.
Up arrow icon