RadPanelBarItem and Scrollviewer Issue

4 posts, 0 answers
  1. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 23 Feb 2010 Link to this post

    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) ?
  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 23 Feb 2010 Link to this post

    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.
  3. DevCraft banner
  4. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 23 Feb 2010 Link to this post

    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.
  5. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 24 Feb 2010 Link to this post

    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.
Back to Top