Pending Review
Last Updated: 06 Nov 2018 21:34 by ADMIN
Andrew
Created on: 28 Jun 2017 22:34
Category: DropDownList
Type: Feature Request
10
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.
3 comments
mark
Posted on: 12 Sep 2017 23:58
a kendoAutoCompleteValueTemplate would also be handy.
Justin
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.
Justin
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.