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.

Getting the dockingManager object from a UserControl dinamically

Thread ID:

Created:

Updated:

Platform:

Replies:

74407 Jun 11,2008 09:13 AM Jun 13,2008 06:00 AM Windows Forms 1
loading
Tags: Tools
Kamalakkannan Narayanan
Asked On June 11, 2008 09:13 AM

Hi,
I have added DockingManager to an usercontrol in design time.
At run time i have created the userControl object and trying to access all the controls added to it. But the control name differs
for eg:
I have added an GradiantPanel with name gpParent, while iam getting its name as dockHost_gpPrent while trying to acces as i said above.

Please help to access all the controls which i have added dynamically to the dockingManager of that usercontrol.

Also i want to know how to get the DockingManger control attached to the Usercontrol object, so that i can use controls array to get all the controls.




Mano J [Syncfusion]
Replied On June 13, 2008 06:00 AM

Hi Kamalakkannan,

Thanks for using Syncfusion products.

Did you try using dockingManager's ControlsArray as shown below?


foreach (Control ctrl in this.dockingManager1.ControlsArray)
{
Console.WriteLine(ctrl.Name);
}


This will show the control name as mentioned (gpParent).

Please refer to the below sample and let me know if you see any problem.

Best Regards,
Mano




TestSample_eb33fe43.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.

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.

;