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.
Syncfusion Feedback

DockingManager how to hide and show controls

Thread ID:

Created:

Updated:

Platform:

Replies:

97005 Oct 20,2010 02:31 AM Oct 21,2010 06:07 AM Windows Forms 1
loading
Tags: Tools
Parvind Saini
Asked On October 20, 2010 02:31 AM

Hi,
I am trying to hide and show control within the docking manager depending on dynamic conditions.

- How I hide control and show it dynamically?


- I need to fire an event when a particular tab is clicked in we are adding controls as child controls and docking style Tabbed.
_dockingManager.DockControl(loansCashAndEventsControl, loansDrawdownEventsUserControl, DockingStyle.Tabbed, 170);

I need to find out which tab is getting clicked.


Vallarasu S [Syncfusion]
Replied On October 21, 2010 06:07 AM

Hi Parvind,

Thanks for your interest in Syncfusion products.

[#1]. To show / hide a control you can make use of SetDockVisibility method as follows,


this.dockingManager1.SetDockVisibility(control,true);


and there are option to autohide the control on applicaion load, have a look at the following documentation.

http://help.syncfusion.com/ug_83/User%20Interface/Windows%20Forms/Tools/default.htm?turl=Documents/hidingcontrols.htm

[#2]. DockingManger has property to get the ActiveControl, and there is no direct API to get the active tab as the dock sates are dynamically changed. By gaining reference to the tabcontrol you can get the active tab,
refer the attached sample for the implementation.

[#3.]. With the above implementation you can raise an event at the MouseDown event based on which tab is active.

Please let us know your concerns, and we are happy to assist you.

Regards
Vallarasu S.




DockingMangaerSample_65fe447a.zip

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.

Warning Icon 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.Close Icon

;