Move tool window from one dock to another?

7 posts, 0 answers
  1. Erwin
    Erwin avatar
    10 posts
    Member since:
    Oct 2009

    Posted 22 Oct 2009 Link to this post

    Hello,

    I was wondering whether it was natively possible to move a tool window from one dock to another, or if we had to do the job manually using the drag drop events.

    Any clue on how to enable this feature? The purpose is to achieve a Google Chrome like behaviour...

    I have browsed the forum but unfortunately with no luck on this.

    Thanks!
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 28 Oct 2009 Link to this post

    Hi Erwin,

    Thank you for writing.

    RadDock does not support moving tool windows between different dock instances. However, you can implement it on your own using the standard Drag and Drop functionality. Because you are the first customer to ask for this, we have not a ready example. However if you want to implement such a scenario, I will be glad to help you and answer your questions.

    Regards,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Erwin
    Erwin avatar
    10 posts
    Member since:
    Oct 2009

    Posted 28 Oct 2009 Link to this post

    Hi Martin,

    I would certainly appreciate your help on how to implement it using the standard drag and drop functionality. Should we pass the whole ToolWindow as object in the DragDrop initialization, receive it on the destination raddock and display it, and finally delete the ToolWindow on the original RadDock? Or, due to difficulties with deep copies, should we just add the reference to the second raddock, show the ToolWindow, and remove it from the ToolWindows in the first raddock (but not delete the object, just the reference).

    If you already know the perfect code for this, I will be eager to read it! Otherwise I'll try by myself but I may not do the things the optimal way.

    Best regards
  5. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 03 Nov 2009 Link to this post

    Hello Erwin,

    Thank you for getting back to me. Since your scenario is very specific, we have no example of Drag and Drop between two RadDocks. In addition such a scenario is a bit strange, because the idea of RadDock is to handle multiple tool window operations itself. You can find a lot of examples how to implement Drag and Drop through the standard .Net Framework methods in MSDN and various internet sources. However, we will appreciate if you share more details on your goal, because it seems that your scenario is unusual and interesting.

    Greetings,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Cyril Hr
    Cyril Hr avatar
    6 posts
    Member since:
    Apr 2010

    Posted 15 Apr 2010 Link to this post

    Hello, I think I'm doing it wrong and since it I got a problem due to 2 radock, I'm posting here ...
    What I'm trying to do is to have 2 radock, one on the left, one on the right. So that the user can't mix all windows

    The things is that any windows of one Raddock can be drag to the other raddock and then the window crash ... I'm unable to find a way to prevent that.

    So first of all, I'm not sure if It's necessary to use 2 radDock for that
    And secondly, if I really need 2 radDock, how can I block the drag & drop from one to the other.

    Thx in advance
    Cyril
  7. Cyril Hr
    Cyril Hr avatar
    6 posts
    Member since:
    Apr 2010

    Posted 20 Apr 2010 Link to this post

    Any idea ?
  8. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 20 Apr 2010 Link to this post

    Hello Cyril Hr,

    Thank you for contacting us.

    As I mentioned before, we do not support Drag and Drop between two RadDocks. I would recommend considering on using only one RadDock, since this control is designed to handle multiple tool windows  out-of the box.

    Please, take a look in our documentation of the customization abilities of RadDock and check whether they will match your requirements.

    Greetings,
    Martin Vasilev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for WinForms is Visual Studio 2017 Ready