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.
Unfortunately, activation email could not send to your email. Please try again.

DockingManager issues

Thread ID:

Created:

Updated:

Platform:

Replies:

58433 Mar 23,2007 11:46 AM Mar 23,2007 06:55 PM Windows Forms 3
loading
Tags: Tools
Himanshu
Asked On March 23, 2007 11:46 AM

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

Murugan [Syncfusion]
Replied On March 23, 2007 12:52 PM

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

Himanshu
Replied On March 23, 2007 01:39 PM

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

Murugan [Syncfusion]
Replied On March 23, 2007 06:55 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;