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

Getting the dockingManager object from a UserControl dinamically

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.




1 Reply

MJ Mano J Syncfusion Team June 13, 2008 10:00 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon