How to enable drag and drop from RadListBox to RadDocking controls.

Thread is closed for posting
9 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 27 Sep 2012 Link to this post

    Requirements

    RadControls version Q2 2012 SP2
    .NET version 4.0
    Visual Studio version 2010
    programming language C#
    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
    The built-in drag and drop behavior of RadDocking does not allow items to be dropped from the outside control.
    The provided project demonstrates how to enable the drag and drop functionality between outside controls (in this example RadListBox) and RadDocking control.
    The basic steps in the project are:
    1. Create a class that inherits RadDocking.
    2. Create a BeginDrag(), OnDropInfo() CancelDrag() methods with a custom logic for each method.
    3. Attach the AddDragInitializeHandler event to the outside control (the RadListBox).
  2. 8B7E1635-6463-4E36-A9BD-526109D55E92
    8B7E1635-6463-4E36-A9BD-526109D55E92 avatar
    1 posts
    Member since:
    Sep 2009

    Posted 21 May 2013 Link to this post

    The sample is great, however, it's strange to lose the visual "drag cue" typically generated by the RadListBox. In playing with the sample I tried the standard approach to generated a drag visual:

    e.DragVisual = new ContentControl { ContentTemplate = LayoutRoot.Resources["CustomRadListoBoxItemtemplate"] as DataTemplate, Content = e.Data };


    ...but nothing I did restored the visual cue.  Is RadDocking simply overriding the drag visual?  Is there a way to restore a visual cue?  
  3. A226849A-9910-4490-83BC-8A8E9A1213DA
    A226849A-9910-4490-83BC-8A8E9A1213DA avatar
    390 posts
    Member since:
    Sep 2012

    Posted 27 May 2013 Link to this post

    Hi Ed,

    I am afraid this is the limitation of this example. When the drag operations begins the example actually cancels it and handles it using the MouseMove, LostMouseCapture and the MouseLeftButtonUp events.

    However recently we implemented the drag drop operations of RadDocking via the Telerik's DragDropManager class. This means that a similar example without any limitations that uses the DragDropManager would be available soon. We will do our best to make similar example for the Q2 SP1.

    Regards,
    Ivo
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  4. 78D9674B-D7D4-4CFC-B659-97E4F2537997
    78D9674B-D7D4-4CFC-B659-97E4F2537997 avatar
    4 posts
    Member since:
    Dec 2013

    Posted 07 Jan 2014 Link to this post

    Hi Ivo,

    Were you guys able to make another sample? without limitations?


    Regards,
    Anchit
  5. 78D9674B-D7D4-4CFC-B659-97E4F2537997
    78D9674B-D7D4-4CFC-B659-97E4F2537997 avatar
    4 posts
    Member since:
    Dec 2013

    Posted 08 Jan 2014 Link to this post

    Also, I tried the sample and it worked perfectly fine with older binaries (version: 2012.1.326.40).
    But, when I shifted to a newer binaries (version 2013.3.1204.40), which I'm using in my project, the following problem is being faced - 
    When you drag-drop the item on a docking, the RadSplitContainer is added correctly to the docking but, the overlay used to guide the placement is not being removed.

    Please see the attached screenshot.

    Thanks,
    Anchit
  6. E6B49CA0-0857-4A14-8838-C713FC1DCDD6
    E6B49CA0-0857-4A14-8838-C713FC1DCDD6 avatar
    749 posts
    Member since:
    Mar 2023

    Posted 10 Jan 2014 Link to this post

    Hi,

    Unfortunately such example is still not available. We have added it to our feedback portal where you can easily track its status. The logged item can be found here.

    We managed to reproduce the described issue with the control's compasses and we will research it further. Currently we are implementing many new features and bug fixes to the control that should be available with our next official release of RadDocking. One of the big changes is the compasses implementation which may effect the described issue in the attached sample project. We will do our best to create a sample project and update the logged feedback item in our feedback portal as soon as possible. 

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  7. 78D9674B-D7D4-4CFC-B659-97E4F2537997
    78D9674B-D7D4-4CFC-B659-97E4F2537997 avatar
    4 posts
    Member since:
    Dec 2013

    Posted 10 Jan 2014 Link to this post

    Hi Vladi,

    Thanks for the response. For now, can you suggest any workaround for the problem? other than downgrading the dlls I'm using?
    I ask this as it is a major requirement of the project I'm working on.
    Also, is there a timeline on the next official release of the RadDocking control?

    Thanks,
    Anchit
  8. E6B49CA0-0857-4A14-8838-C713FC1DCDD6
    E6B49CA0-0857-4A14-8838-C713FC1DCDD6 avatar
    749 posts
    Member since:
    Mar 2023

    Posted 13 Jan 2014 Link to this post

    Hello,

    As this unexpected behavior has been recently brought to our attention we are not aware of any workaround for it.

    We will do our best to add the previously mentioned example to our SDK once it is ready. You can also download our next official release of RadDocking once it is available and test if the issue is resolved. Our next official release should be available by the end of February.

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  9. CDF9FABA-68B8-4D48-8F35-C2A1C658E31A
    CDF9FABA-68B8-4D48-8F35-C2A1C658E31A avatar
    1 posts
    Member since:
    Apr 2018

    Posted 02 May 2018 Link to this post

    Hello,

    has there been any Update to this Topic in the last 4 Jears ?
    I would be interested to use this Drag and Drop behavior in my projekt.

    Regards Tobias

Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.