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

TileList IsSelected bugs?

3 Answers 44 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Kuba
Top achievements
Rank 1
Kuba asked on 15 Mar 2013, 06:45 PM
Hello Telerik Team,

i know that TileList is under beta version but i decided to include it in my commercial project,
im affraid i discovered some issues which im not able to resolve,

im attaching small sample project to reproduce potencial bugs,

bug 1 steps

1. run project
2. you should see 2 tiles which the first is selected
3. just select the second one
4. my expected behavior is that tilelist will automaticaly handle and unselect first tile, but result is quite strange for me, both tiles are selected

bug 2 steps

follow first 3 step for previous issue till step where you should both tiles selected,

1. now press UNSELLECT TILES button
2. now try to select the second one (green) tile, its impossible to select that tile until i will select first one again

both issues i suppose are related to bad handling some internal isselected flag,
this should be quite easy to fix,

please note that im gonna use this tilelist in my commercial project so i will be gratefull for any workaround or just new nightly build,

also there is some problems with tilelist with arranging tiles after changing size parent, if you need i can prepare repro project,

thanks in advance for any (fast :) ) help
Kuba

im using 2013.1.220.1050 version

3 Answers, 1 is accepted

Sort by
0
Kuba
Top achievements
Rank 1
answered on 15 Mar 2013, 06:48 PM
i just realized that rar and zip attachment are not allowed, so below you will find code for xaml and cs
<UserControl x:Class="SilverlightApplication6.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
 
    <StackPanel>
        <telerik:RadTileList>
            <telerik:Tile Name="Tile1" Background="Red" IsSelected="True"/>
            <telerik:Tile Name="Tile2" Background="Green"/>
        </telerik:RadTileList>
        <Button Content="UnselectTiles" Click="Button_Click"/>
    </StackPanel>
</UserControl>


and cs:

usingZWRpdG9yUmVwbHkkZGlhbG9nT3BlbmVyolor: #000000;">System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
 
namespace SilverlightApplication6
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Tile1.IsSelected = false;
            Tile2.IsSelected = false;
        }
    }
}
0
Kuba
Top achievements
Rank 1
answered on 15 Mar 2013, 10:27 PM
ok i found workaround,

an issue is related to SelectedItemCollection, IsSelected property manages this collection incorrectly,

if i manualy remove Tile from SelectedItemCollection RadTileList then TileList selection behavior is correct,

but i'm still thinking that IsSelected property should manage this collection automatically,
thanks
Kuba
0
Maya
Telerik team
answered on 18 Mar 2013, 03:25 PM
Hi Kuba,

Indeed, this behavior is anything but expected. I will investigate the case and let you know once I have more information on the topic.
Thank you for reporting it. I have updated your telerik points. 

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TileList
Asked by
Kuba
Top achievements
Rank 1
Answers by
Kuba
Top achievements
Rank 1
Maya
Telerik team
Share this question
or