We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

DockingManager issues

Hi,

I have these two quick questions:

1) While using the DockingManager, when we click on pin to autohide, it sometimes hides and creates the corresponding tab at the
top while at other times, it creates a tab on the sides/bottom.

The question is : how do we ensure that it only docks to the top only.

2) Whenever we enable the docking for a panel, we get three icons on the top right corner of the panel
a) Down arrow icon
b) Pin Icon
c) 'X' Close icon.
The question is: how to hide the down arrow icon?

Any help/suggestion would be greatly appreciated.

Thanks and Regards,
Himanshu Kumar

3 Replies

MU Murugan Syncfusion Team March 23, 2007 04:52 PM UTC

Hi Himanshu,

The question is : how do we ensure that it only docks to the top only.

Please set the OuterDockAbility of the DockingManager to Top. This will restrict the control to dock top only.

this.dockingManager1.SetOuterDockAbility(this.panel1, Syncfusion.Windows.Forms.Tools.DockAbility.Top);

The question is: how to hide the down arrow icon?

Please set MenuButtonVisibility of the control to false by using SetMenuButtonVisibility method.

this.dockingManager1.SetMenuButtonVisibility( this.panel1 , false );

Thanks for using Syncfusion products.

Regards,
Murugan P.S


HI Himanshu March 23, 2007 05:39 PM UTC

Hi Murgan,

Thanks for the prompt reply.

1) We were able to hide the down arrow icon by setting the MenuButtonEnabled to false from the design view DockingManager properties.

2) For some reason, we are unable to locate SetOuterDockAbility for dockingManager(We are using Syncfusion 4.2.0.37).

So second issue remains unresolved.

Thanks & Reagrds,
Himanshu Kumar


>Hi Himanshu,

The question is : how do we ensure that it only docks to the top only.

Please set the OuterDockAbility of the DockingManager to Top. This will restrict the control to dock top only.

this.dockingManager1.SetOuterDockAbility(this.panel1, Syncfusion.Windows.Forms.Tools.DockAbility.Top);

The question is: how to hide the down arrow icon?

Please set MenuButtonVisibility of the control to false by using SetMenuButtonVisibility method.

this.dockingManager1.SetMenuButtonVisibility( this.panel1 , false );

Thanks for using Syncfusion products.

Regards,
Murugan P.S


MU Murugan Syncfusion Team March 23, 2007 10:55 PM UTC

Hi Himanshu,

Please try the below code inside the DockAllow event and let em know if it helps you.

If ((arg.DockStyle != Syncfusion.Windows.Forms.Tools.DockingStyle.Top)
{

MessageBox.Show("Can''t be docked to the top or bottom.")
arg.Cancel = True

}

Thanks,
Murugan P.S

Loader.
Live Chat Icon For mobile
Up arrow icon