RadButton rendering incorrectly when using ItemTemplate and ItemsSource in RadToolBar

2 posts, 0 answers
  1. Paul McNamara
    Paul McNamara avatar
    30 posts
    Member since:
    Apr 2010

    Posted 09 Jun 2011 Link to this post

    I have slight rendering issue when using the toolbar like so:

    <telerik:RadToolBar ItemsSource="{Binding Buttons}"  Name="tbMain" Grid.Row="0" Grid.Column="0" GripVisibility="Collapsed" OverflowButtonVisibility="Visible" Margin="0,0,0,0">
                        <telerik:RadButton  Visibility="{Binding Visible, Converter={StaticResource VisibilityConverter}}" Command="{Binding Command}" ToolTipService.ToolTip="{Binding ToolTip}">
                            <StackPanel Orientation="Horizontal" >
                                <Image Height="16" Width="16" Source="{Binding SmallImage}"></Image>
                                <TextBlock VerticalAlignment="Center" Text="{Binding Label}"  Padding="4,0,0,0"></TextBlock>

    The buttons render how they normally do outside a toolbar and not sans-border like they do if I just declare a button in the normal fashion inside the toolbar element
    Is this a bug or if not is there something I should be doing that I'm not?

    Thanks in advance,

  2. Petar Mladenov
    Petar Mladenov avatar
    2986 posts

    Posted 14 Jun 2011 Link to this post

    Hello Paul McNamara,

    Just a final step is needed in order to get the desired result. The re-defined style of the RadButton must be applied explicitly in the ItemTemplate. I modified the project from this blog post in order to use RadButton instead of Button. So please give it a try and let us know if this worked in your scenario.

    All the best,
    Petar Mladenov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top