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

RadPanelBarItem and Scrollviewer Issue

3 Answers 92 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 23 Feb 2010, 03:23 PM
Hi

I'm having some difficulties setting the scrollviewer of the radpanelbar

Here's what I have :

In a RadWindow of 800x600, I want to put a RadPanelBarControl with several radPanelBarItems.

I'd like to always see all of the RadPanelBarItems in the radwindow, and if the content of one or the other item is too big to display, I want to display a scrollbar inside the item, that affects only its content (so that all of the items are always visible)

I've tried to put a scrollview as an item, but it seems to always affect the entire RadPanelBar control.

Do you have any idea on how to perform such scenario (hope it's clear enough) ?

3 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 23 Feb 2010, 04:15 PM
Hello Subileau,

By design the PanelBar control contains an internal ScrollViewer that wraps all items. Thus, even if you edit the default template of the items and add a ScrollViewer to each item, the individual ScrollViewers of the items will never show their ScrollBars since the ScrollViewer in their parent will always give them enough space to render. The motivation behind this is that the PanelBar is a hierarchical control.

From what you described, I suspect that the OutlookBar control might be a better fit for your scenario since it is not hierarchical and would easily allow you to put ScrollViewers in the individual items. Let me know what you think.

Best wishes,
Tihomir Petkov
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
Ludovic Gerbault
Top achievements
Rank 1
answered on 23 Feb 2010, 04:50 PM
Well, the outlookbar doesn't really fit what I want, since, as far as I've seen this component, it refreshes a controlcontent depending on which bar you've clicked on.

What I'm looking for is a stacked bar control containing each a contentcontrol that I can animate as will, and I found the panel bar the closest think matching what I want to do.

It would work perfectly if there wasn't that annoying scrollviewer problem.
0
Tihomir Petkov
Telerik team
answered on 24 Feb 2010, 01:05 PM
Hi Subileau,

Technically the Outlookbar does not refresh its content - it only shows/hides the content of its items according to the currently selected item. You could manually animate the content of the items if this is critical to your scenario.

Another alternative that would avoid the PanelBar's scrollviewer would be to use stacked RadExpander controls.

Sincerely yours,
Tihomir Petkov
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.
Tags
PanelBar
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Ludovic Gerbault
Top achievements
Rank 1
Share this question
or