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

Multiple Selection: Single Selection Per Group

4 Answers 118 Views
TileList
This is a migrated thread and some comments may be shown as answers.
fernando.miranda.a400
Top achievements
Rank 1
fernando.miranda.a400 asked on 14 Nov 2018, 03:23 PM

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.

4 Answers, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 19 Nov 2018, 09:57 AM
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.
0
fernando.miranda.a400
Top achievements
Rank 1
answered on 21 Nov 2018, 12:58 PM

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.

0
Dinko | Tech Support Engineer
Telerik team
answered on 22 Nov 2018, 01:40 PM
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.
0
fernando.miranda.a400
Top achievements
Rank 1
answered on 22 Nov 2018, 02:41 PM

Hi Dinko, thank you for your suggestion.

Done!

 

Best regards.

Tags
TileList
Asked by
fernando.miranda.a400
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
fernando.miranda.a400
Top achievements
Rank 1
Share this question
or