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

"Click" Event on TileList fires multiple times

1 Answer 155 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Patrick asked on 18 Apr 2013, 02:25 PM
Not sure if this is an issue or I'm just using it wrong....
I am trying to capture when a User "Clicks" a Tile in my Tile List and then perform an Action.  The below works okay except that if one Tile is currently selected and you Click a new Tile the Event below will fire 3 times.  Twice with the new Tile as an AddedItem thereby firing my Method twice.  

How can I do this different so as to not have my method fire multiple times?  Is there a different event I should look at?  I was able to capture the Tile's MouseDoubleClick event but that isn't truly what I want to do.

This is a WPF 4.5 app using Telerik release(2013.1.403.45).

<telerik:RadTileList x:Name="AppLaunchPad"
          GroupTemplate="{StaticResource GroupTemplate}"
          ScrollViewer.HorizontalScrollBarVisibility="Visible"
          cal:Message.Attach="[Event SelectionChanged] = [Action OpenDoorway($eventArgs)]">

public void OpenDoorway(SelectionChangedEventArgs e)
{
    var s = e.Source as RadTileList;           
    var t = e.AddedItems.Count;
    if (t > 0)
    {
        windowManager.Alert("Testing", "This came from the Launcher: " + s.SelectedItem.ToString());
    }
}

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 19 Apr 2013, 06:27 AM
Hi Patrick,

Indeed, we had such an issue, but it has already been resolved. The fix will be availble in the internal build coming on Monday next week. Could download it then and let me know if you still encounter any troubles ?
The SelectionChanged event should be fired only once and have the selected and unseleted items in its arguments.

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TileList
Asked by
Patrick
Top achievements
Rank 2
Answers by
Maya
Telerik team
Share this question
or