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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tabbed windows

Thread ID:





63936 Jul 11,2007 06:54 PM UTC Aug 8,2007 03:44 PM UTC General Discussion 5
Tags: General Discussion
nitin mehra
Asked On July 11, 2007 06:54 PM UTC

I have an issue:
I have 2 types of windows in my application: Browser types and Editor types. In the application the browser type windows appear on the left hand side as tabbed windows and the editor type windows appear as tabbed windows on the right hand side (see screenshot1). Whenever a window is opened, it opens up as a floating window after which it is classified and docked as a tab either on the right hand side or left hand side depending on the type. I am calculating the sizes while docking for the first time. Whats happening is if I open a browser window first and then an editor window the windows get docked correctly as shown in screenshot1; but when I open another browser type window the editor window gets resized to the one shown in screenshot2.
I am using the following method to dock for the first time:

if ((typeof(TrackView) == type) || (typeof(DealView) == type) || (typeof(DTView) == type))
width = (int)hostForm.Width * 3 / 4;
dm.DockControl(control, hostForm, DockingStyle.Right, width);
else if ((typeof(DealBrowserView) == type) || (typeof(TrackBrowserView) == type))
width = (int)hostForm.Width * 1 / 4;
dm.DockControl(control, hostForm, DockingStyle.Left, width);

I am using the following method to open any new windows:

dm.DockControl(control, parentControl, DockingStyle.Tabbed, parentControl.Width);

Here the parentcontrol will be a control of the same type as control but not equal to it.

Is there something that I am doing wrong.

Nitin Mehra.

Jeba S [Syncfusion]
Replied On July 25, 2007 11:31 AM UTC

Hi nitin,

Sorry for the delay in responding.

Thank you for your details.

Could you please let me know whether the application structure you specified is followed in the below sample link? If not, please provide me more information about the sample that would help us to find out the cause of the issue.

Here is the sample:

Please provide me the screenshot of the issues you faced.

Thank you for using Syncfusion Products.

Best Regards,

nitin mehra
Replied On July 30, 2007 04:21 PM UTC

I am sorry I forgot to add the screenshots earlier. Please have a look at the attached screenshots.
Thanks alot,
Nitin mehra.


Jeba S [Syncfusion]
Replied On August 6, 2007 12:56 PM UTC

Hi nitin,

Sorry for the delay in response.

Thank you for your screen shots.

You can avoid the space using the DockToFill property .

this.dockingManager1.DockToFill = true;

Please refer this sample which illustrates the above:

Kindly let us know if you need any further assistance.

Thank you for your interest in Syncfusion Products.

Best Regards,

nitin mehra
Replied On August 8, 2007 03:25 PM UTC

But when i look at the documentation it states that:
The DockToFill option should not be set when the host form is an MDIContainer or if it contains an instance of the DockingClientPanel control

I think the control that I am using is an MDI Container.

Nitin Mehra.

nitin mehra
Replied On August 8, 2007 03:44 PM UTC

But as you suggested It worked.

Thanks a ton

Nitin Mehra.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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