Get selected object in Kendo Autocomplete
<p>I have a Kendo Autocomplete item :</p>

<pre><code>&lt;input type="text" id="Ac_Transporteur" class="" maxlength="30" required/&gt;
--------------------------------------------------------------------------
    $("#Ac_Transporteur").kendoAutoComplete({
    dataTextField: "Nom",
    //Not interesting code here
    dataSource: dsTransporteurs,
    suggest: true,
    delay: 0
    });
</code></pre>

<p>I have no problem selecting my objects from my datasource dsTransporteur, but I need to get the object that is selected in the autocomplete. <br/>
I tried this :</p>

<pre><code>var transp = $("#Ac_Transporteur").data("kendoAutoComplete");
var transpSelect = transp.select();
oVehicule._Transporteur = transp.dataItem(transpSelect);
</code></pre>

<p>but transp.select() don't return the index of the object in the datasource and is "undefined". <br/>
Any idea how I can get the object selected in my autocomplete ?<br/><br/>
I also tried to add a global var named veh_Transporteur and added this :</p>

<pre><code>change: function (e) {
        veh_TRANSPORTEUR = this.dataItem();
},
</code></pre>

<p>But I still have "undefined" in veh_TRANSPORTEUR.</p>