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

WinForms PanelBar ContenPanel

3 Answers 99 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.
Fabian Schulz
Top achievements
Rank 1
Fabian Schulz asked on 23 May 2008, 04:40 PM

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

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 26 May 2008, 12:44 PM
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
0
Fabian Schulz
Top achievements
Rank 1
answered on 26 May 2008, 01:27 PM
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
0
Nikolay
Telerik team
answered on 28 May 2008, 02:02 PM
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
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Fabian Schulz
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Fabian Schulz
Top achievements
Rank 1
Share this question
or