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

How to differentiate clearAll & single button clear event in kendo multiselect 'deselect' event

1 Answer 305 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
pandiselvam
Top achievements
Rank 1
pandiselvam asked on 29 Sep 2017, 06:59 AM
Hi,
 I need to differentiate clearAll & single button clear in kendo multiselect. when i remove single item or clearAll items from multiselect.

1 Answer, 1 is accepted

Sort by
0
Misho
Telerik team
answered on 02 Oct 2017, 02:04 PM
Hi,

There is no built in mechanism for distinguishing the clearAll from the single button clear operation. A possible approach for such implementation could be attaching a click event handler to close button element of the items in the multiselect and apply your custom logic:
$('span.k-select > span').click(function() {
  console.log("Close Single item")
})

I hope this helps.

Best Regards,
Misho
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
MultiSelect
Asked by
pandiselvam
Top achievements
Rank 1
Answers by
Misho
Telerik team
Share this question
or