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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dragging and dropping from a listbox to a tree view

Thread ID:





101284 Oct 12,2011 03:46 PM UTC Oct 21,2011 12:48 PM UTC WPF 2
Tags: Diagram
Michael Day
Asked On October 12, 2011 03:46 PM UTC

Is it possible to drag and drop an object from a listbox to a tree view? I've looked through the samples and can't find anything indicating how to do this.

I have an application with docked windows and I'm trying to drag from a toolbox-type window (as a listbox) onto a treeview in another window that has a TreeViewAdv control in it.

With your support team's assistance, I got dragging and dropping from a listbox to a diagram view to work, but when I drag from a listbox onto a treeview, none of the treeview events fire and I get the cancel cursor icon, but when I right click on the treeview, the context menu pops up and seems to work fine. My treeview code started out from your TreeViewAdvDemo code in your examples.

Let me know if you need additional info to help.

Michael Day
Replied On October 12, 2011 03:49 PM UTC

I might add that we're developing our application in C#.

Ramya Thirugnanam [Syncfusion]
Replied On October 21, 2011 12:48 PM UTC

Hi Michael,

We regret for the inconvenience caused.

We have provided a solution in the incident #85136 to, drag and drop items from Listbox to Diagram, by sending an instance of ‘Syncfusion.Windows.Diagram.DragObject’, as Data. The same Data will not be supported for dropping in TreeViewAdv, also this Type will not be known to TreeViewAdv.

Could you please send us a simple sample to represent your requirement, so that we will provide necessary solution.



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