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

Contents of PanelBar in ExplorerBarStyle don't resize properly

1 Answer 60 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Uwe Honermann
Top achievements
Rank 1
Uwe Honermann asked on 15 Feb 2010, 10:48 AM
Hi,

The contents of the panelBar in ExplorerBarStyle do not resize, if a scrollbar is visible. The vertical scrollbar stays at the current location until one of the contained groups is collapsed or expanded.

Steps to reproduce the problem:

1. Create a new form and add a Panelbar with DockStyle.Fill and set the GroupStyle to ExplorerBarStyle
2. Add a few groups to the Panelbar and set the EnableHostControlMode to true
3. Make sure the CanScroll Property of the Panelbar ist set to true
4. Start the Application
5. Resize the window so that the vertical scrollbar is displayed
6. Drag the right border of the window and resize it (now the scrollbars should be at the location they were before the resizing)
7. Click one of the groups to place the scrollbars in the correct location

Is this behaviour a bug or am I missing something really simple? What do I have to do to always place the Scrollbars at the right border of the window?

My System:
  • OS: Windows 7 64bit
  • Framework: Version 2 0
  • Telerik RADControls for WinForms: Q3 2009 SP1 (2009.3.9.1203)

1 Answer, 1 is accepted

Sort by
0
Uwe Honermann
Top achievements
Rank 1
answered on 15 Feb 2010, 12:03 PM
The problem is solved using a workaround.

1. Subscribe to SizeChanged event of RadPanelBar.

this.radPanelBar1.SizeChanged +=new EventHandler(radPanelBar1_SizeChanged);

2.  And then call UpdateScrollbars method in the EventHandler:

void radPanelBar1_SizeChanged(object sender, EventArgs e)
        {
            this.radPanelBar1.PanelBarElement.UpdateScrollbars();
        }

Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Uwe Honermann
Top achievements
Rank 1
Answers by
Uwe Honermann
Top achievements
Rank 1
Share this question
or