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

Scroller for Hierarchical Items

1 Answer 29 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Pranama Moorthy
Top achievements
Rank 1
Pranama Moorthy asked on 19 Jan 2011, 11:20 AM
Hi Telerik Team,
                          I really liked the example given in the below link http://www.telerik.com/help/silverlight/howto-display-hierarchical-data.html, but I need one more small enhancement, I need to HIerachical Data items to have fixed width, as shown in the attached diagram. Could you please advice how I could do it with a sample project illustration?

Regards,
Pranama

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 19 Jan 2011, 05:03 PM
Hi Pranama Moorthy,

You will have to apply an ItemContainerStyle to the RadPanelBar in order to implement this scenario:

1. Edit the default control template of the RadPanelBarItem in ExpressionBlend (read more). Then you have to add a ScrollViewer to the PanelBarItemTopLevelTemplate ControlTemplate to wrap the transformationRoot element.
2. Set the MaxWidth property of the RadPanelBarItem (in the RadPanelBarItemStyle) to limit the height of the items.

I prepared a sample project illustrating this approach. Give it a try and let us know if it works for you or if you need more info.

Best wishes,
Tina Stancheva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
PanelBar
Asked by
Pranama Moorthy
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or