Multiple Selection: Single Selection Per Group

5 posts, 1 answers
  1. fernando.miranda.a400
    fernando.miranda.a400 avatar
    3 posts
    Member since:
    Jun 2018

    Posted 14 Nov 2018 Link to this post

    Hi,

     

    Is there a way that I can configure the selection for the TileList, so that, the user can select multiple tiles but only one tile per group?

    Like the behavior of a RadioButton, for example?

     

    Thanks in advance.

  2. Answer
    Dinko
    Admin
    Dinko avatar
    874 posts

    Posted 19 Nov 2018 Link to this post

    Hello Fernando,

    Selecting one item per group is not supported out of the box by the RadTileList control. You could try to achieve this behavior using custom code. I have searched for a possible solution and I think I manage to found one. I have created a sample project and attached it to this reply. In a few words, I have subscribed to the SelectionChanged of the control and I am checking the currently selected item. If there is already selected item for this group I am removing it from the SelectedItems collection. Keep in mind that, adding/removing items from the SelectedItems collection will trigger the SelectionChanged event again.

    Regards,
    Dinko
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. fernando.miranda.a400
    fernando.miranda.a400 avatar
    3 posts
    Member since:
    Jun 2018

    Posted 21 Nov 2018 in reply to Dinko Link to this post

    Hi Dinko, 

    Thank you for your sample, it works as expected and it fits our needs.

    I wanna leave the suggestion of introducing such feature without the need of a workaround, it just seemed like something obvious to us and we didn't even try to come up with a workaround in the first place because we thought we were just missing something and decided to check first.

     

    Best regards.

  4. Dinko
    Admin
    Dinko avatar
    874 posts

    Posted 22 Nov 2018 Link to this post

    Hello Fernando,

    I am happy to hear that the provided workaround works on your side. If you think that this is a good-to-have feature you can log a feature request in our Portal.

    Regards,
    Dinko
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. fernando.miranda.a400
    fernando.miranda.a400 avatar
    3 posts
    Member since:
    Jun 2018

    Posted 22 Nov 2018 in reply to Dinko Link to this post

    Hi Dinko, thank you for your suggestion.

    Done!

     

    Best regards.

Back to Top