Drag/Drop RadNavigationView

1 Answer 20 Views
NavigationView (Hamburger Menu)
Tony
Top achievements
Rank 1
Tony asked on 26 Oct 2021, 10:12 PM

Hello,

Is it possible to drag RadNavigationViewItems around in the RadNavigationView If so, how would this be implemented?

 

Thanks

 

Tony

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 29 Oct 2021, 09:49 AM

Hi Tony,

Thank you for your interest in our RadNavigationView control for WPF.

At this moment of writing, the control does not support drag-drop behavior out of the box. However, you can implement drag-drop functionality using our DragDropManager. You can check the Drag-drop between GridView and TreeView help article which demonstrates how you can add such functionality to the RadGridView and RadTreeView control. You can use the code for the RadTreeView and modify it to fit for RadNavigationView. For your convenience, I have created a sample project to demonstrate this. You can check it out and extend the functionality as per your requirement. Keep in mind that the custom drag-drop behavior in the attached project does not ItemsSource property but you can modify it to respect it. I think the project will be a good starting point.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tony
Top achievements
Rank 1
commented on 01 Nov 2021, 04:48 PM | edited

Hi Dinko,

Thanks for the project.  I will play around with it and see what I can do.

Tony

Tags
NavigationView (Hamburger Menu)
Asked by
Tony
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or