This is a migrated thread and some comments may be shown as answers.

Change height of panel

1 Answer 97 Views
Dock
This is a migrated thread and some comments may be shown as answers.
kris860911
Top achievements
Rank 1
kris860911 asked on 13 Feb 2008, 06:20 AM
Hi.

I am having a problem with the Docking.
This is what I have so far.
I have created a panel (Telerik.WinControls.Docking.IDockable)
This panel is then added to the current panels with the docking manager.

However, I would like this to be separate at the bottom.
So, I have told the docking manager to create a new horizontal tab group (DockingManager.NewHorizontalTabGroup) and given my panel.

This works great so far. It is separated from the other panels, and is at the bottom, however I have two problems that I cannot seem to sort out.

1) (Not critical) I would like to hide the tab at the top of this new horizontal group. It is the only tab that will ever be here, and is just wasting a little bit of space.

2.) (NB) I need to adjust the size of this bottom TabGroup. It is too big (The two tab groups have split the screen 50/50 I think). I need to make it smaller. So that my new TabGroup at the bottom is say 50pixels in height or so... How would I do this?

Thanks,
Kris

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 13 Feb 2008, 12:12 PM
Hello Chris,

Thank you for writing.

The DockingManager.NewHorizontalTabGroup is used for the TabbedDocument behavior.

1) For the current edition of RadDock we do not provide a safe API for accessing and hiding the TabStripElement. You can try this unsafe workaround:

this.dockPanel1.DockableTab.ParentTabStrip.Visibility = ElementVisibility.Collapsed; 

2) Set the Size property of DockPanel or DocumentPane object.

I hope this was helpful. If you have any additional questions, please contact us.

Regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
kris860911
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or