Horizontal RadToolBar resize problem

2 posts, 0 answers
  1. Aleksey Zdanovich
    Aleksey Zdanovich avatar
    2 posts
    Member since:
    Mar 2010

    Posted 25 Mar 2010 Link to this post

    Hi,
    I create a toolbar with a four buttons. If I append the buttons to the toolbar in XAML, all OK.

     

    <tn:RadToolBar UseLayoutRounding="True" Grid.Row="0"   
    x:Name="tbMain1"&gt;<BR>&lt;Button Content="Button 1"   
    tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;Button Content="Button 2"   
    tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;Button Content="Button 3"   
    tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;Button Content="Button 4"   
    tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;/tn:RadToolBar&gt; 

    Now, I'm defining a DataTemplate for the toolbar...

    &lt;tn:RadToolBar UseLayoutRounding="True" Grid.Row="0"   
    x:Name="tbMain"&gt;<BR>&lt;tn:RadToolBar.ItemTemplate&gt;<BR>&lt;DataTemplate&gt;<BR>&lt;Button   
    Content="{Binding Path=Caption}"   
    tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;/DataTemplate&gt;<BR>&lt;/tn:RadToolBar.ItemTemplate&gt;<BR>&lt;/tn:RadToolBar&gt; 


    ... and assign ItemSource property in code-behind file...

    IList&lt;ItemViewModel&gt; models = new List&lt;ItemViewModel&gt;<BR>{<BR>new   
    ItemViewModel(ItemType.Command, "Command 1"),<BR>new   
    ItemViewModel(ItemType.Tool, "Tool 1"),<BR>new ItemViewModel(ItemType.Command,   
    "Command 2"),<BR>new ItemViewModel(ItemType.Tool, "Tool   
    2")<BR>};<BR>tbMain.ItemsSource = models;<BR> 

    Now, I'm resizing the browser window so that last button on the toolbar is hidden.
    After the browser window is maximized, the number of buttons is doubled.

    SL 3, IE 8, Telerik 2009.3.1322.1030

  2. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 26 Mar 2010 Link to this post

    Hello Aleksey Zdanovich,

    We are aware of this and apologize for the inconvenience caused.
    Here you can find its current status of this issue:
    http://www.telerik.com/support/pits.aspx#/public/silverlight/984

    Greetings,
    Bobi
    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.
  3. DevCraft banner
Back to Top