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

Expanding Panelbar

6 Answers 129 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Kamlesh
Top achievements
Rank 1
Kamlesh asked on 05 Dec 2008, 11:02 AM
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

6 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 23 Dec 2008, 01:04 PM
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.
0
sunu
Top achievements
Rank 1
answered on 26 Jun 2009, 10:58 AM
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 ?

 

0
Tihomir Petkov
Telerik team
answered on 29 Jun 2009, 07:28 AM
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.
0
Timothy Garton
Top achievements
Rank 1
answered on 30 Sep 2009, 04:29 AM
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?
0
Valentin.Stoychev
Telerik team
answered on 01 Oct 2009, 04:04 PM
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.
0
Timothy Garton
Top achievements
Rank 1
answered on 01 Oct 2009, 04:24 PM
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
Tags
PanelBar
Asked by
Kamlesh
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
sunu
Top achievements
Rank 1
Tihomir Petkov
Telerik team
Timothy Garton
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Share this question
or