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

RadPanelBar scroll issue

3 Answers 164 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.
Markus
Top achievements
Rank 1
Markus asked on 19 Apr 2010, 03:23 PM
Hello,

I have PanelBar with PanelBarGroupElements. On group elements I have RadButtonElements with Images. Now if windows is too small to show all items on group element a scrollbar is shown. But this scrollbar scrolls RadPanelBar and not content panel of PanelBarGroup.
RadButtonElements where overlayed by minimized group panels. At the bottom of RadPanelBar you can see a part of a cut RadButtonElement

I tried different Styles and setting AutoScroll of ContentPanel to true. But always the same.

You  can simulate this beavior by creating  lot of elements on a group element.

for (int i = 0; i < 50; i++) 
            { 
                string itemName = "Item " + i.ToString(); 
                Telerik.WinControls.UI.RadButtonElement radItem = new Telerik.WinControls.UI.RadButtonElement(itemName, null); 
                radItem.Name = itemName; 
                radItem.ImageAlignment = System.Drawing.ContentAlignment.MiddleCenter; 
                radItem.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; 
 
                radPanelBarGroupElement1.Items.Add(radItem); 
            } 
 
            //radPanelBarGroupElement1.ContentPanel.AutoScroll = true; 

Best regards,

Markus

3 Answers, 1 is accepted

Sort by
0
Markus
Top achievements
Rank 1
answered on 21 Apr 2010, 02:05 PM
No idea? I try to explain a bit more.

Size of RadPanelBarGroupElement.ContentPanel is always the size of RadPanelBar.ContentPanel. RadPanelBarGroupElement.ContentPanel doesn't show a scrollbar, so items may be hidden behind following RadPanelBarGroupElement headers. I think calculation of ContentPanel.Height does not work properly.
0
Accepted
Boyko Markov
Telerik team
answered on 22 Apr 2010, 12:37 PM
Hi Markus,

Thank you for contacting us.

You can find attached a project which shows a RadPanelBar with 3 groups, and 50 buttons in a scroll viewer, added in the first group.

Feel free to write us, if you need more assistance.

Kind regards,
Boyko Markov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Markus
Top achievements
Rank 1
answered on 23 Apr 2010, 11:39 AM
Thanks for your answer. But your solution works only for RadPanelBar with GroupStyle 'ListBar' or 'OutlookNavPane'
For me it is ok because I use ListBar


Regards,
Markus
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Markus
Top achievements
Rank 1
Answers by
Markus
Top achievements
Rank 1
Boyko Markov
Telerik team
Share this question
or