"Click" Event on TileList fires multiple times

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    42 posts
    Member since:
    Jul 2012

    Posted 18 Apr 2013 Link to this post

    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}"
              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());
  2. Maya
    Maya avatar
    4062 posts

    Posted 19 Apr 2013 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top