Limit Multiselected to single selection?

1 Answer 16 Views
MultiSelect
David
Top achievements
Rank 1
Iron
Iron
Iron
David asked on 11 Jun 2021, 07:20 PM
We have have built a multiselect into a window component that can be pop-up on the host page. We have a few instances where we only want the user to be able to select one item and we would like to pass a parm into our component to limit the multiselect to one item. Is that possible?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 14 Jun 2021, 08:31 PM

Hi David,

You can add a parameter to your custom component and change between a DropdownList and a Multiselect.

Alternatively, you can use that flag in the ValueChanged event of the multiselect to prevent the selection of a second option.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
MultiSelect
Asked by
David
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or