Search code examples
angularjseventskendo-uimulti-selectkendo-multiselect

How to add onSelect & onDeselect events Kendo multi-select AngularJS?


I am using Kendo multi-select to implement a tag based filter widget. I am using Angular as my framework.

I have stucked in adding onSelect and onDeSelect events to be triggered when the user select, deselect a tag. I could only found this example. But I can't find a way how I can do it with Angular.

Can some one please help?


Solution

  • Adding a function for onSelect() and specify it as the onSelect method in HTML by

    <select kendo-multi-select
                        k-data-source="vm.filterGroup.groupItems"
                        k-select="vm.onSelect"</select>
    

    workd for me.