0

I want to clear the selection of my kendo-combobox.

<kendo-combobox #products [data]="productData" [(ngModel)]="selectedProduct" (selectionChange)="handleSelectionChange($event)" [textField]="'DisplayName'" [valueField]="'ID'"></kendo-combobox>

As you can see I got a two way binding with ngModel. When I set "selectedProduct" to null the combobox seems to be empty & reseted.

But here is my problem: When I select the same item as i have selected before setting the selectedProduct to null the combobox does not trigger "selectionchange".

So how can I reset the Kendo Combobox properly the angular way? And is there maybe a way to trigger the function behind the clear button of the combobox programmatically? This would solve my problem too.

Hope you guys can help me, thanks.

Tris Tan
  • 33
  • 6
  • just make selectedProduct = [] empty array that might help – TheParam Jan 17 '19 at 09:25
  • Thank you for your input. SelectedProduct is actually an object. I have already tried to set it as an empty object and set it undefined. Nothing worked. – Tris Tan Jan 17 '19 at 09:37

0 Answers0