When clearing the bind-Value the multiselect still has the values previously selected.
Is there another way to clear the multiselect?
1 Answer, 1 is accepted
0
Joana
Telerik team
answered on 02 Nov 2020, 04:45 PM
Hi Fredrik,
The Value of the MultiSelect component is of type List<TValue>. However, any manipulations applied to the list do not trigger the Blazor lifecycle for update of the parameter as the reference of the list remains unchanged (for example: .Clear(), .Add()). That being said, you need to reinitialize the list of values in order to make sure that the Multiselect will be updated accordingly:
Once we support binding to ObservableCollection of values, you will be able to update the set of values through it.
Let me know if you have further questions.
Regards,
Joana
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/.