Last Updated: 03 Jun 2022 11:21 by ADMIN
Created on: 28 Jun 2017 22:34
Category: AutoComplete
Type: Feature Request
Autocomplete selectionChange event
It would be nice to have access to a selectionChange event in the autocomplete similar to the other dropdowns. This way when binding against arrays of complex objects, we could receive the whole object selected instead of the single value property out of it.
Posted on: 13 Oct 2020 13:26

Hi Andrew,

Did you get any solution for it?


Rutvik Nagarkar

Posted on: 12 Sep 2017 23:58
a kendoAutoCompleteValueTemplate would also be handy.
Posted on: 14 Aug 2017 16:52
I thought I had a workaround for this using the template however, stop prop is called on enter if the popup is open (I get the reasoning). 
 <span (keydown)="getSelectedItem(dataItem)" (click)="getSelectedItem(dataItem)">{{ dataItem.formatted_address }}</span>

if you only care about click and never expect the user to hit enter then this could work for you.
Posted on: 14 Aug 2017 16:27
I agree this would be great to have access to the selected object. I thought this would be supported as the template exposes the data items but it just complains that the value is not a string. Even if the value change sent the full object, index, and new value that would work as well. But having the selection change would be boss so if you wanted to hijack the selection you could do that before the value change.