Drag and drop item from tree view into RadDock document container

1 Answer 80 Views
Dock Treeview
Hayley
Top achievements
Rank 1
Iron
Hayley asked on 03 Aug 2022, 11:30 AM
Hi,

I have a RadDock set up like the Visual Studio IDE, with a tree view in a tool windows similar to Solution Explorer. I would like to replicate the behaviour in Visual Studio where you can drag a file from the Solution Explorer into the document area to open it. Is it possible to do this with RadDock? Drag an item from a tree view in a tool window into the document container and handle the drop?

Thanks,

Hayley

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria
Telerik team
answered on 05 Aug 2022, 01:12 PM

Hi Hayley,

Thank you for writing.

In order to implement the desired behavior in RadDock where you drag an item from the tree view into the document container, you can use the RadTreeView DragDrop Service. In your case, you can extend the drag-drop service of the RadTreeView to fit your needs. A good example can be found in the Modify the DragDropService behavior help article.

I am sending you a project as well, where you can see a sample implementation for the desired behavior.

I hope this information helps. 

Regards,
Maria
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/.

Hayley
Top achievements
Rank 1
Iron
commented on 19 Aug 2022, 07:25 AM

Thanks Maria, 

Your sample was exactly what I needed!

Regards,

Hayley

Tags
Dock Treeview
Asked by
Hayley
Top achievements
Rank 1
Iron
Answers by
Maria
Telerik team
Share this question
or