Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Dock > Prevent Docking to Fill Position

Not answered Prevent Docking to Fill Position

Feed from this thread
  • Paul avatar

    Posted on Oct 14, 2011 (permalink)

    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.

    Reply

  • Julian Benkov Julian Benkov admin's avatar

    Posted on Oct 18, 2011 (permalink)

    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.

    Reply

  • Lorenzo avatar

    Posted on Nov 8, 2011 (permalink)

    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

    Reply

  • Julian Benkov Julian Benkov admin's avatar

    Posted on Nov 11, 2011 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Dock > Prevent Docking to Fill Position
Related resources for "Prevent Docking to Fill Position"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]