I have Kendo DropDown list and I want to Select the value on Selection of DropDownList. I am getting the text of Selected Item but not value that should be ID.
function onSelect(e) {
var item = e.item;
var v = e.value;
var text = item.text();
alert(text);
alert(v);
};
Binding Data with Dropdownlist kendo
$("#FirstName").kendoDropDownList({
dataTextField: "Fname",
dataValueField: "Id",
dataSource: dataSoucceAll,
});
binding select function with kendo drop-down list.
var dropdownlist = $("#FirstName").data("kendoDropDownList");
dropdownlist.bind("select", onSelect);