Prevent Docking to Fill Position

4 posts, 0 answers
  1. Paul
    Paul avatar
    1 posts
    Member since:
    Apr 2011

    Posted 14 Oct 2011 Link to this post

    Tech, 

    I am using Telerik Version 2009.2.9.701. and Using Telerik.WinControls.Docking.DockingManager in my Form. I am using DockPanel. when user start drag and Drop. I want to prevent user from dropping to Fill DockPosition.

    In new version, offers DragDropService which has AllowedDockManagerEdges and PreviewDockPosition to achive this funcnality. But, at this point I can not update the my Telerik Version to new one.so, I have restriction to use only 2009.2.9.701.

    Please suggest any solution or workaround that is avilable in 2009.2.9.701 Version in Telerik.WinControl.Docking.dll. 

    Help would be appriciated.

    Thanks.
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 18 Oct 2011 Link to this post

    Hi Paul,

    For the old DockingManager control, you can use DockingStateChanging event and cancel operation for TabbedDocument state:

    void dockingManager_DockingStateChanging(object sender, DockingChangingEventArgs e)
    {
        if (e.DockObject == myToolWindow && e.DockableState == Telerik.WinControls.Docking.DockState.TabbedDocument)
        {
            e.Cancel = true;
        }
    }

    Please note that in general our DockingManager control is no longer supported and its implementation will be removed from our suite in Q3 2011. I would strongly recommend updating to your latest releases where many issues have been addressed and many controls have been greatly improved.

    I hope this helps.


    All the best,
    Julian Benkov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Lorenzo
    Lorenzo avatar
    11 posts
    Member since:
    Nov 2011

    Posted 08 Nov 2011 Link to this post

    Hi,

    I have to prevent Docking to Fill Position too. How can I do that with the new RadDock control?
    I used the AllowedDockState of my ToolWindow:

    toolWindow1.AllowedDockState = AllowedDockState.AutoHide | AllowedDockState.Docked | AllowedDockState.Floating | AllowedDockState.Hidden;

    But when i drag the toolWindow1 I still see the Docking Assistant that shows me the DocumentContainer area. If I drop my window there nothing happen, but the user get confused.

    Is there any way to achieve this goal? It is possible to remove DocumentContainer area and replace it with MDI container instead?

    Thanks in advance.
    Lorenzo
  5. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 11 Nov 2011 Link to this post

    Hello Lorenzo,

    You can prevent Fill position globally for your application behavior by using the DragDropAllowedDockStates property of RadDock:

    radDock1.DragDropAllowedDockStates = AllowedDockState.AutoHide | AllowedDockState.Docked | AllowedDockState.Floating | AllowedDockState.Hidden;

    Replacing TabbedDocument container with classic MDI is not supported functionality.

    Do not hesitate to contact us if you have further questions or issues.

    Kind regards,
    Julian Benkov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Back to Top