23 Feb 2022 14:04
allow retreiving the selected item when binding a complex model to the autocomplete control
I'm using the autocomplete control to bind a comlex model to it.
Binding a complex model is currently supported by the autocomplete control:
When selecting an item from this list, it is necessary to retreive the selected item.
It seems to me that at the moment the .ToString Method is called on the selected item.
That results in displaying type information at the UI and providing the type information when the "MyOnChangeHandler" function ist called ( 02.jpg, 03.jpg).
And because the OnChange event handler needs to implement a function with an object as a parameter ( 03.jpg ) I'm wondering how the selected item can retreived.
Instead ob providing a .ToString() - information when binding to a complex type you need to provide the selected item.
And by the way, when selecting an item the ItemTemplate ( 04.jpg ) seems to be ignored when displaying this selected item.