This is a migrated thread and some comments may be shown as answers.

Prevent tree view expand when dropped a node to other treeiview

2 Answers 48 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Dharmalingam
Top achievements
Rank 1
Dharmalingam asked on 09 Jun 2015, 10:02 AM

Hello,

 I am having three tree views named role, responsibility, function . I can able to drag and drop a function to responsibility and responsibility to role.

Step 1: I have dragged a responsibility over the role node and the dropped responsibility has been added in the role

Step 2: I dragged a function  and dropped over the responsibility.

Step 3: After the dropped function on responsibility, the role also refreshing with the function which we don't want. How to restrict
this functionality.

Thanks and Regards,

Dharma

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 11 Jun 2015, 07:40 AM
Hello Dharma,

We have already discussed this topic in the support ticket that you posted. Please do not submit duplicate questions in the forums or the ticketing system.

I will copy-paste some information for other readers to see:

When a TreeView dataItem is copied to another TreeView, it exists in both TreeViews as the same dataItem. TreeView selection and expansion is performed within the context of a dataItem. In other words, selection and expansion will start to work synchronously for all instances of the given dataItem. This is by design.
 
In order to avoid the synchronization, you will need to append a Javascript object to the destination TreeView, instead of a dataItem instance.


Regards,
Dimo
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dharmalingam
Top achievements
Rank 1
answered on 11 Jun 2015, 07:57 AM

Hello Dimo,

Regret for the inconvenience caused. We will continue with support ticket. 

Thanks for your update.

 

Regards,

Dharma

 

 

Tags
TreeView
Asked by
Dharmalingam
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Dharmalingam
Top achievements
Rank 1
Share this question
or