We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

droppedNode/droppedNodeData

Thread ID:

Created:

Updated:

Platform:

Replies:

146165 Jul 23,2019 08:01 PM UTC Jul 25,2019 02:33 PM UTC ASP.NET Core - EJ 2 3
loading
Tags: TreeView
Aleksey Rybakov
Asked On July 23, 2019 08:01 PM UTC

Hello.

I'm trying to change datasouce data on drag-and-drop scenario of nodes of ejs-treeview control using droppedNode (nodeDragStop) events.

When I drop the node to some parent the value of args.droppedNode (.droppedNodeData) specifies new parent node, but when I drop node to the root (top level) of tree that properties (droppedNode/droppedNodeData) stores the previous parent value. 

How can I handle the dropping of node to the root of the tree?


Christopher Issac Sunder K [Syncfusion]
Replied On July 24, 2019 02:41 PM UTC

Hi Aleksey, 
 
Greetings from Syncfusion support. 
 
Query-1: When I drop the node to the root (top-level) of the tree that properties (droppedNode/droppedNodeData) store the previous parent value.  
Here while dropping a node to the top-level, the dragged node will add as Sibling. Hence it will consider the nearest li as its droppedNodeData. 
 
For example, Consider this demo, 
 
  1. Drag Brazil and drop it nearby Australia as the root node.
  2. Here the droppedNodedata will be Australia’s node data
 
This is the behavior of our control.  
 
Query-2: How can I handle the dropping of the node to the root of the tree? 
Can you please let us know the following details 
  1. While dropping, what sort of operation have you done in your application?
 
Kindly share your code snippet or sample to replicate your issue. It would be more helpful to assist you better. 
 
Thanks, 
Christo 


Aleksey Rybakov
Replied On July 24, 2019 03:16 PM UTC

Can you please let us know the following details 
  1. While dropping, what sort of operation have you done in your application?

I did not do any sorting

Christopher Issac Sunder K [Syncfusion]
Replied On July 25, 2019 02:33 PM UTC

Hi Aleksey, 

It seems you have misunderstood our query. The actual query is while dropping, what kind of operation have you done in your application?. So, Please check and provide the details which would be more helpful for us to provide you the prompt solution at earliest. 

Thanks,
Christo 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon