Is there something like a maxSelectedItems for the MultiSelect component?
We're trying limit the number of items that can be selected. Wondering if there's an existing attribute, or if we have to create something ourselves.
1 Answer, 1 is accepted
1
Accepted
Stefan
Telerik team
answered on 11 Jan 2022, 05:38 AM
Hello,
We can do this inside on onChange event of the component. We can check for the length of the new value and only update the state if it is under a specific number: