Multi selection

6 posts, 1 answers
  1. Jeroen
    Jeroen avatar
    3 posts
    Member since:
    Apr 2011

    Posted 16 May 2011 Link to this post

    Dear all,

    We would like to use the TileView as an alternative to a Grid View. When doing so, we also want the option of selecting multiple tiles, and than perform an action on these selected tiles. For instance use a context menu for this.

    Is there any built-in support to select multiple tiles or are you planning on doing this in the near future? Would save me a lot of trouble!

    Regards
    Jeroen
  2. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 17 May 2011 Link to this post

    Hi Jeroen,
    From the 2011.1.0315 the RadTileView have a build-in selection - you should read this blog post and examine the attached project.
    If you have further questions feel free to ask.

    Greetings,
    Zarko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Jeroen
    Jeroen avatar
    3 posts
    Member since:
    Apr 2011

    Posted 17 May 2011 Link to this post

    You guys (and girls) rule!!!!!!!!!
    Thanx! Works like a charm, so far.
  5. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 16 Jun 2011 Link to this post

    Is there an easy way to change the behaviour of the selection mode "single". As it is now the selected state toggles; what I want is to the selected state to hold if I click one or more times on a tile.
  6. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 16 Jun 2011 Link to this post

    As a temporary workaround I used the following code:

     

    Private Sub RadTileView_PreviewTileSelectionChanged(sender As System.Object, e As Telerik.Windows.Controls.SelectionChangedEventArgs)
     
        If e.RemovedItems.Count = 0 Then Exit Sub
     
        Dim _tileview As RadTileView = sender
        Dim _cur_tile As RadTileViewItem = _tileview.SelectedItem
        Dim _rem_tile As RadTileViewItem = e.RemovedItems.Item(0)
     
        If _rem_tile.Header = _cur_tile.Header Then e.Handled = True
     
    End Sub


    Is there an easier way? Maybe there should be a selection mode called SingleNoToggle?

     

     

  7. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 17 Jun 2011 Link to this post

    Hello Jorn,
    To handle the PreviewTileSelectionChanged is the right way to achieve your desired functionality. I added feature request under the name "TileView: Add SingleNoToggle selection mode" in our PITS and it will be available for tracking and voting tomorrow the latest.
    If you have more questions feel free to ask.

    Best wishes,
    Zarko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner