I use AutoComplete as people picker
When selecting element, the whole object is selected (but just first name and last name is shown).
You can get selected object by: $("#" + controlId).data("kendoAutoComplete").dataItem()
The problem is when I fill the form with data. I don't know how to set object to autocomplete so there would be value in "dataItem"
$("#" + controlId).data("kendoAutoComplete").value("test") is setting only what's displayed
I need this to validate whether the proper element was selected and I need all of the other properties of the the object.
How to set object as selected element in AutoComplete