I have this code on my jhtml page:
$("#myselect").kendoComboBox({ dataTextField: "Name", dataValueField: "Id", filter: "contains", autoBind: false, minLength: 3, dataSource: { serverFiltering: true, type: "json", transport: { read: { url: "/controller/retrivedata", contentType: "application/json;", dataType: "json", data: function () { return { CustomId: data.MyCustomIdValue } } } } }, select: function (e) { if (e.dataItem) { var dataItem = e.dataItem; alert(selectedItem.Id); alert(selectedItem.Name); data.OtherComboId = parseInt(selectedItem.Id); $('#otherCombo').data('kendoComboBox').dataSource.read(); } } });
The combo box load data correctly but on the select event I can not get the select object. I need the data value.
e.dataItem is undefined.
e.item contain the LI element but I never have found the value (onli the text)
How I can read the datavalue?
LSo
