Drag&Drop between Toolkit TreeView and Canvas

6 posts, 0 answers
  1. Claudio
    Claudio avatar
    13 posts
    Member since:
    Apr 2011

    Posted 11 Aug 2011 Link to this post

    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
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 15 Aug 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Claudio
    Claudio avatar
    13 posts
    Member since:
    Apr 2011

    Posted 29 Aug 2011 Link to this post

    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!!!!
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Sep 2011 Link to this post

    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 >>

  6. Claudio
    Claudio avatar
    13 posts
    Member since:
    Apr 2011

    Posted 02 Sep 2011 Link to this post

    Thanks Maya!
    I solved the problem using 

    RadDragAndDropManager.CancelDrag();

    while i'm performing a Double Click procedure.

    Claudio
  7. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Sep 2011 Link to this post

    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 >>

Back to Top
DevCraft banner