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

Problem with ItemsSource in RadToolBar and QuickAccessToolBar...

1 Answer 51 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 12 Jul 2010, 09:43 PM
I was attempting to use an RadToolBar and QuickAccessToolBar as an ItemsControl and found a problem.

Notice the collection of items contains 8 elements.  If you run this app and resize the browser window (in an attempt to push the items into the overflow panel) and then expand the window, the items seem to randomly multiply.  See my screenshot below.
using System.Windows.Controls;
using System.Collections.ObjectModel;
  
namespace SilverlightApplication12
{
  public partial class MainPage : UserControl
  {
    public MainPage()
    {
      InitializeComponent();
  
      ObservableCollection<string> TheList = new ObservableCollection<string>()
            {
                "btn1",
                "btn2",
                "btn3",
                "btn4",
                "btn5",
                "btn6",
                "btn7",
                "btn8",
            };
  
      this.toolbar.ItemsSource = TheList;
    }
  
  }
  
}
<UserControl x:Class="SilverlightApplication12.MainPage"
    mc:Ignorable="d"
    xmlns:rad="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"     
    xmlns:radnav="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
    d:DesignHeight="300" d:DesignWidth="400">
  
      
    <Grid x:Name="LayoutRoot" Height="30" Background="White">
  
        <radnav:RadToolBar x:Name="toolbar">
          
            <radnav:RadToolBar.ItemTemplate>
            <DataTemplate>
            <Button Content="{Binding}" />
        </DataTemplate>
            </radnav:RadToolBar.ItemTemplate>
      
        </radnav:RadToolBar>
  
    </Grid>
  
      
</UserControl>

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 15 Jul 2010, 09:52 AM
Hello Rob,

Thank you for contacting us. We are aware of this issue. You can find the associated public issue tracking system item here. We'll be working on enabling databinding in RadToolBar during Q3 2010.

Sincerely yours,
Kiril Stanoev
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
Tags
ToolBar
Asked by
Rob
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or