Contents of PanelBar in ExplorerBarStyle don't resize properly

2 posts, 0 answers
  1. Uwe Honermann
    Uwe Honermann avatar
    5 posts
    Member since:
    Aug 2009

    Posted 15 Feb 2010 Link to this post

    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)
  2. Uwe Honermann
    Uwe Honermann avatar
    5 posts
    Member since:
    Aug 2009

    Posted 15 Feb 2010 Link to this post

    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();
            }

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top