Declined
Last Updated: 15 Apr 2019 14:07 by ADMIN
Chris
Created on: 10 Apr 2019 15:45
Category: MultiSelect
Type: Feature Request
0
Provide a way to programmatically clear selected values from multiselect

Provide a way to easily clear the selected values from a multiselect. Similar functionality can be achieved by achieved by setting the value of the multiselect to an empty array, however this does not deselect the items in the dropdown portion of the multiselect, and the items must be clicked twice to reselect them. The clear should function the exact same as the built in clear button. 

https://5ec2yi.run.stackblitz.io/

1 comment
ADMIN
Dimiter Topalov
Posted on: 15 Apr 2019 14:07
Hello Chris,

You can use the MultiSelect's reset() method to clear the value and selection programmatically:

https://stackblitz.com/edit/angular-gn8rq2-qjoesu?file=app/app.component.ts

As this will not reset the model, you can also set the value to an empty array when the component is value bound.

Regards,
Dimiter Topalov
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.