Drag and Drop node from one treeview to other treeview located in different component

1 Answer 145 Views
TreeView
akhila
Top achievements
Rank 1
akhila asked on 10 Apr 2022, 11:37 AM

Hello Team,

 

I have furnishing treeview in one componet and maintainance treeview in other componet.

I want to drag and drop element form Maintaiance treeview to furnishing.

But it is not working.

code sample:

https://stackblitz.com/edit/angular-oa3rmq?file=app/app.component.ts

Please let me know how to acheive this.

 

thank you

 

 

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 13 Apr 2022, 12:45 PM

Hi Аkhila,

Thank you for the provided example and details. I checked the demo.

In general, when the Treeview components are placed in separate Angular components the Treeview drag and drop functionality isn't possible to be used between the two of them. That limitation is caused due to the Treeview components not being instantiated in the same container and thus they aren't aware of the existence of the other Treeview. Thus, please use them in a single Angular component.

Please let me know if I can provide any further information on this case.

Regards,
Svet
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
TreeView
Asked by
akhila
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or