Expanding Panelbar

7 posts, 0 answers
  1. Kamlesh
    Kamlesh avatar
    12 posts
    Member since:
    Nov 2008

    Posted 05 Dec 2008 Link to this post

    Hi,

    If one of my panel Item is expanded then it;s height is only set to the height of content on that panel. But i want it to exapnd it on whole page. It should display the Content part the rest of the space should be left empty.

    I have another question:
    I have placed radtreeview inside the panelbar. while expanding and focusing on the treeview it display's whole treeview as seletect. Means on Mouse hover it display the whole treeview selected. Can you please tell me how to avoid it.Even treeview is not behaving as default, it is not getting selection bar on mouse hover.

    Thanks
    Kamlesh J
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 23 Dec 2008 Link to this post

    Hello Kamlesh,

    First, sorry for the delayed reply!

    The PanelBar does not currently support the scenario where it will fill up the available space. This comes from the fact that the PanelBar items are arranged in a StackPanel which will not expand by default. We are planning to support this for the future versions, but it is not available today.

    Yes, I confirmed that when there is a TreeView in PanelBar it will not fill up the available space. There was a problem with the HorizontalContentAlignment and VerticalContent alignment properties which were not applied properly.

    This issue has been fixed now, but unfortunately it is not part of the recently released Service Pack. If you like, I can send you the patched assemblies.

    Thanks for your involvement and suggestions, your Telerik Points have been updated.

    Regards,
    Miroslav
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. sunu
    sunu avatar
    19 posts
    Member since:
    Jun 2009

    Posted 26 Jun 2009 Link to this post

    Hi
    I am binding the panelbar from the values from DB like

    <

     

    UserControl.Resources>

     

     

     

    <core:HierarchicalDataTemplate x:Key="Item" ItemsSource="{Binding Items}">

     

     

     

    <TextBlock Text="{Binding Name}" Margin="5 2 5 2"/>

     

     

     

    </core:HierarchicalDataTemplate>

     

     

     

    </UserControl.Resources>

     

     

     

     

    <Grid x:Name="LayoutRoot" Background="White">

     

     

     

    <telerik:RadPanelBar x:Name="toolBox" Margin="5" BorderBrush="#9098a3"

     

     

    BorderThickness="1" HorizontalAlignment="Left" Selected="toolBox_Selected" ItemsSource="{Binding}" ItemTemplate="{StaticResource Item}">

     

     

     

    </telerik:RadPanelBar>

     

     

     

    </Grid>

    Is it possible to expand the first item on binding ?

     

  5. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 29 Jun 2009 Link to this post

    Hello sunu,

    Please check the attached project for a demonstration of how to expand the first item in a data-bound RadPanelBar control. Let me know if it helps.

    Regards,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Timothy Garton
    Timothy Garton avatar
    14 posts
    Member since:
    Sep 2009

    Posted 29 Sep 2009 Link to this post

    Is it possible yet to have an item expand to fill the entire space of a panelbar?  I'm putting an html placeholder inside of panel bar item and would like the html placeholder to expand to fill the entire space.  I have tried changing the template to use a RadDockPanel but this does not seem to work, but I could be doing it wrong.

    Any ideas?
  7. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Oct 2009 Link to this post

    Hi Michael Stewart,

    Unfortunately what you are tryun to achieve is not possible with the current version of the panelbar. We have this option in our backlog, but I can't tell you when it will be implemented.

    Regards,
    Valentin.Stoychev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. Timothy Garton
    Timothy Garton avatar
    14 posts
    Member since:
    Sep 2009

    Posted 01 Oct 2009 Link to this post

    Thanks for the quick response.   Guess it was a good idea to move to another control.  I ended up using a RadDocking control with a RadPanel docked at the bottom to get a similar effect if not identical.

    Thanks again,

    Michael
Back to Top
DevCraft banner