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

Remove RadTileViewItem

1 Answer 89 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Boots
Top achievements
Rank 1
Boots asked on 19 Oct 2009, 08:17 PM
Hello,

I'm attempting to add and remove items to the RadTileView. I'm having trouble removing the item from the collection. I'm sure I'm missing something obvious.

public partial class Window1 : Window  
    {  
        RadTileViewItem item0 = new RadTileViewItem() { Header = "1" };  
        RadTileViewItem item1 = new RadTileViewItem() { Header = "2" };  
        RadTileViewItem item2 = new RadTileViewItem() { Header = "3" };  
 
        public Window1()  
        {  
            InitializeComponent();  
 
              
            tileview.Items.Add(item0);  
            tileview.Items.Add(item1);  
            tileview.Items.Add(item2);  
 
        }  
 
        void btn_Click(object sender, RoutedEventArgs e)  
        {  
                tileview.Items.Remove(item1);  
        }  
    } 
<Window x:Class="addDeleteTileViewItem.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">  
    <Grid> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="30" /> 
            <RowDefinition /> 
        </Grid.RowDefinitions> 
        <Button Click="btn_Click" /> 
        <telerik:RadTileView Name="tileview" Grid.Row="1" /> 
    </Grid> 
</Window> 

When I click the button i get a KeyNotFoundException.
Any help would be appreciated.

Thanks again,
Boots

1 Answer, 1 is accepted

Sort by
0
Accepted
Tihomir Petkov
Telerik team
answered on 20 Oct 2009, 11:55 AM
Hi Boots,

It turned out that you hit a bug in the TileView control. I logged in in our bug tracking system and scheduled it to be fixed for the upcoming Q3 release (beginning of November). I also added 1000 Telerik points to your account. Thank you for your feedback.

Regards,
Tihomir Petkov
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.
Tags
TileView
Asked by
Boots
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Share this question
or