WinForms PanelBar ContenPanel

4 posts, 0 answers
  1. Fabian Schulz
    Fabian Schulz avatar
    16 posts
    Member since:
    Jul 2007

    Posted 23 May 2008 Link to this post


    Hi,
    sombody help me, please.
    I try to Create a PanelBar witch is dynamic filled with usercontrols.
    My problem is the content-panel disappears when to many groupe-elements are added to my panelbar.

    All standart elements are visable, but the content Panel - activated by EnablHostControlMode- witch is allway the last element of the list, will be covered by the following groupelement.

    Neither padding nor margin or minSize helps

    kind regards
    Fabian Schulz
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 26 May 2008 Link to this post

    Hello Fabian Schulz,

    Thank you for contacting me.

    RadPanelBar ListBar group style does not support scrolling of the group mixed content. If you use only elements as group items, the group will be automatically resized. If you add bigger controls in the group ContentPanel and set its AutoScroll mode to true, you will be able to scroll in the ContentPanel.

    However, if you have both items and ContentPanel, you will not be able to scroll among them.

    If you have additional questions, do not hesitate to contact me.

    Best wishes,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Fabian Schulz
    Fabian Schulz avatar
    16 posts
    Member since:
    Jul 2007

    Posted 26 May 2008 Link to this post

    Hi Nikolay,

    if have test it without any nodeelments. Only conentpanels filled with usercontrols.
    The AutoScroll parameter did not help, if the PanelBar is to small, cause of the count of groupelements, the contentpanel will allway covered by the following groupelement.
    No Scrollbar appears. I did not think this could be right?

    bye
    Fabian
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 28 May 2008 Link to this post

    Hello Fabian Schulz,

    Thank you for getting back to me.

    When the ContentPanel has its AutoScroll property set to true and your UserControl is bigger than the ContentPanel, you are able to scroll the usercontrol in the content panel. However, if your RadPanelBar is small in size and there are many group caption elements, the content panel is not big enough or it is not visible at all.

    This layout logic is by design for the ListBar group style - the height of the content panel is calculated when you take the sum of the group caption's height out of the RadPanelBar height. We will reconsider this design in one of our next versions.

    However, if you use ExporerBarStyle, you will get your ContentPanel with appropriate size, and the group caption elements will still be available by the help of a vertical scrollbar.

    If you have additional questions, do not hesitate to contact me.

    Regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top