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

Drag&Drop between Toolkit TreeView and Canvas

5 Answers 95 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Claudio
Top achievements
Rank 1
Claudio asked on 11 Aug 2011, 03:59 PM
Hello,
In my company application we used a TOOLKIT Tree View with a TOOLKIT Drag Drop Target to implement a drag and drop feature from the Tree View to a Canvas.
Due to a BUG that is present in the Drag Drop Target that causes memory leak in our application, now we had to use the TELERIK Drag Drop system.
Is it possible to maintain the TOOLKIT Tree View or we had to change it also with the TELERIK one?
Thanks!
Cla

5 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 15 Aug 2011, 09:15 AM
Hi Claudio,

 Since RadDragAndDropManager is designed to perform drag between any FrameworkElements it can be used to perform this operations between toolkit treeview. It can be done similarly to listbox scenario - http://www.telerik.com/help/silverlight/raddraganddrop-between-listboxes.html. However, I encourage you to check our new DnD framework which offer more flexible API - http://www.telerik.com/help/silverlight/dragdropmanager-events.html

Let us know if you have any further questions or issues adapting our DnD framework.

Kind regards,

Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Claudio
Top achievements
Rank 1
answered on 29 Aug 2011, 04:52 PM
Thank you! I made it!
Just another issue... I attached a DOUBLE CLICK behavior to my treeview, happens that when i double click a LEAF of the TREE, I open a DIALOG BOX to imput some data. After closing che dialog the "OnDragQuery" events is triggered, in this case checking a flag i execute this code:

            if (IsDoubleClick)
            {
                e.QueryResult = false;
                e.Handled = true;
                IsDoubleClick = false;
            }

but the event is fired again... and the CUE is shown.... what I'm doing wrong?

I tried also the drag & drop threshold but nothing....

THANKS!!!!
0
Maya
Telerik team
answered on 02 Sep 2011, 07:32 AM
Hello Claudio,

Please share a bit more information so that we could reproduce your exact scenario locally. Do you implement some of our examples (the one with drag and drop between list boxes) ? How do you define your double-click behavior ?
Generally, any relevant information or sample code would be quite helpful.
  

Kind regards,
Maya
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Claudio
Top achievements
Rank 1
answered on 02 Sep 2011, 08:20 AM
Thanks Maya!
I solved the problem using 

RadDragAndDropManager.CancelDrag();

while i'm performing a Double Click procedure.

Claudio
0
Maya
Telerik team
answered on 02 Sep 2011, 08:29 AM
Hi Claudio,

I am really glad that you resolved the issue. Please do not hesitate to contact us if you need any assistance.
 

Regards,
Maya
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
DragAndDrop
Asked by
Claudio
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Claudio
Top achievements
Rank 1
Maya
Telerik team
Share this question
or