Hello,
My team just upgraded the telerik version (2015.1.225.45) and the tiles functionality is now completely changed as the group property of tile is now only read only.
I am getting error "the given key is not present in dictionary" when removing the tile from group only when setting display index property for group.
i got rid of that error when setting display index of group to null but the drag/drop functionality of tiles within groups doesn't work now.
Here is the xaml code:
Button added to remove tile. Here is the code behind:
Regards,
My team just upgraded the telerik version (2015.1.225.45) and the tiles functionality is now completely changed as the group property of tile is now only read only.
I am getting error "the given key is not present in dictionary" when removing the tile from group only when setting display index property for group.
i got rid of that error when setting display index of group to null but the drag/drop functionality of tiles within groups doesn't work now.
Here is the xaml code:
<Grid> <Grid.ColumnDefinitions/> <Grid.RowDefinitions> <RowDefinition Height="auto"></RowDefinition> <RowDefinition Height="auto"></RowDefinition> <RowDefinition Height="auto"></RowDefinition> </Grid.RowDefinitions> <Grid.Resources> <Style TargetType="{x:Type telerik:Tile}"> <Setter Property="TileType" Value="{Binding TileSize}" /> </Style> </Grid.Resources> <telerik:RadTileList x:Name="RadTileList" VerticalTilesAlignment="Top" Grid.Row="2"> <telerik:RadTileList.ItemsPanel> <ItemsPanelTemplate> <telerik:TileListGroupPanel /> </ItemsPanelTemplate> </telerik:RadTileList.ItemsPanel> </telerik:RadTileList> <Button Width="100" Height="100" Grid.Row="0" HorizontalAlignment="Left" Content="Button" Click="Button_Click_1"></Button> </Grid>Button added to remove tile. Here is the code behind:
public partial class MainWindow : Window { ObservableCollection<TileGroup> group; ObservableCollection<Tile> tiles = new ObservableCollection<Tile>(); Tile t; Tile t1; Tile t2; Tile t3; public MainWindow() { InitializeComponent(); //Groups var groups_collection = new ObservableCollection<TileGroup>(); groups_collection.Add(new TileGroup() { Header = "Group 1", DisplayIndex=0}); groups_collection.Add(new TileGroup() { Header = "Group 2" ,DisplayIndex=1}); groups_collection.Add(new TileGroup() { Header = "Group 3" ,DisplayIndex=2}); //Tiles t1 = new Tile() { Content = "Tile 1"}; t2 = new Tile() { Content = "Tile 2" }; //Grouping tile groups_collection[0].Items.Add(t1); groups_collection[1].Items.Add(t2); //Add in TileList RadTileList.Groups.Add(groups_collection[0]); RadTileList.Groups.Add(groups_collection[1]); } private void Button_Click_1(object sender, RoutedEventArgs e) { RadTileList.Groups[0].Items.RemoveAt(0); } }Regards,