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

8 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1679 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. Ed Dupas
    Ed Dupas 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. Ivo
    Admin
    Ivo avatar
    390 posts

    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. Anchit
    Anchit 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. Anchit
    Anchit 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. Vladi
    Admin
    Vladi avatar
    744 posts

    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. Anchit
    Anchit 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. Vladi
    Admin
    Vladi avatar
    744 posts

    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 >>
Back to Top