Scroller for Hierarchical Items

2 posts, 0 answers
  1. Pranama Moorthy
    Pranama Moorthy avatar
    26 posts
    Member since:
    Jun 2010

    Posted 19 Jan 2011 Link to this post

    Hi Telerik Team,
                              I really liked the example given in the below link, 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?

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 19 Jan 2011 Link to this post

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