RadPanelBar Width Chages in Telerik Q2

2 posts, 0 answers
  1. pv Upendran
    pv Upendran avatar
    10 posts
    Member since:
    Sep 2009

    Posted 29 Sep 2009 Link to this post

       I am using the RadPanelBar in my application. Previously i used  Telerik Q1  and Silverlight 2.0. By using this every thing is perfect.
       Now I am using Silverlight 3.0  and Telerik Q2 in my application.

       My problem  is, Dynamically  the width of the RadPanel control  is changing according to the Header Text  lenght variation of RadPanelBarItems in Telerik Q2  . The coding is as follows:

    <telerik:RadPanelBar x:Name="pb" Margin="2,2,2,2" Width="250" Foreground="Black" >
                <telerik:RadPanelBarItem  Name="pbiCustomerService" Tag="CSC" Selected="RadPanelBarItem_Selected" FontWeight="Bold"  FontFamily="Verdana" FontSize="12"  IsExpanded="True" Style="{StaticResource RadPanelBarItemStyle1}">
                        <StackPanel Orientation="Horizontal">
                            <Image Stretch="Uniform"  Width="30" Height="35" Margin="5,0,7,0" Source="../Images/IconCSC.png"/>
                            <TextBlock VerticalAlignment="Center" Text="Customer Service"/>
     <telerik:RadPanelBarItem FontWeight="Bold" Tag="SA" Selected="RadPanelBarItem_Selected" FontFamily="Verdana" FontSize="12"  Style="{StaticResource RadPanelBarItemStyle1}">
                        <StackPanel Orientation="Horizontal">
                            <Image Stretch="Uniform"  Width="30" Height="35" Margin="5,0,7,0"  Source="../Images/IconSysAdmin.png"/>
                            <TextBlock Text="System Administration" VerticalAlignment="Center"/>

    I had applied the MinWidth and MaxWidth property, but the width is not  fixed.
    I need to keep the RadPanelBar or RadPanelBarItem width should be  fixed.

    Can any body provide solution for this?

    Thanks and regards,

  2. Dimitrina
    Dimitrina avatar
    442 posts

    Posted 02 Oct 2009 Link to this post

    Hello Upendran,

    If you want to set a static width to the PanelBar control, you should use the Width property. Please take a look at the sample project and let me know if you see anything wrong with it.

    Kind regards,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top