Blazor TreeView - DragAndDropEventArgs gives incorrect DroppedNodeData.Id when item is dropped into the root level

I have following example of tree and registered event NodeDropped:

- A
- - B
- - - C

When I move item C to item A - args.DroppedNodeData.Id is A (It's OK) and list is changed to

- A
- - B
- - C

but when I move item C to root level (above or below) A - args.DroppedNodeData.Id is still A (It's wrong). Expected value is null because Dropped node is root not A

I am not able to recognize when is item moved to root level or root item.

Another problem is that args.DropLevel has original value

Could you help me please?



1 Reply 1 reply marked as answer

SS Sharon Sanchez Selvaraj Syncfusion Team March 24, 2021 02:52 PM UTC

Hi Bartolo, 
 
Greetings from Syncfusion Support. 
 
We have checked with your reported issue. But we were unable to reproduce it in our end. 
 
Please refer to the below sample. 
 
 
Please provide us the following details so that we can assist you promptly. 
 
  1. Package version used in your application
  2. Do you want the droppedNodeData to be null when dropping to the root level node?
  3. Video footage on the reported issue
  4. Code block used in your end or modify the above sample to replicate the issue in our end.
 
Refer to the below links to know more about TreeView component. 
 
 
 
Please get back to us if you need further assistance. 
 
Regards, 
 
Sharon Sanchez S. 


Marked as answer
Loader.
Up arrow icon