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

No chips show

2 Answers 221 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 22 Apr 2021, 09:35 AM
Hello,

Is it possible to not show the selection at all on multiselect component. I mean, I don't want to show the chips. Just the current user input or placeholder text.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Oscar
Top achievements
Rank 1
answered on 22 Apr 2021, 09:42 AM
Edit: I want to add, to make sense to the question, that I will show the selecction in a different component list, so I don't need to show them twice. Also they can open the multiselect popup to unselect, cause I will put checkboxes on the popup elements to show they are selected.

Thanks!
0
Accepted
Marin Bratanov
Telerik team
answered on 22 Apr 2021, 01:51 PM

Hello Oscar,

If you cancel the ValueChanged event (i.e., you do not update the view-model in it), the user will see no selection. Selection will then not show up in the dropdown either.

Another approach would be to use CSS to hide the DOM elements of the multiselect from the rendering selection would still happen, selected items in the dropdown will still show up, but CSS can hide the chips in the input itself.

Regards,
Marin Bratanov
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

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