This kendo ui combo-box is used for display customers list with filter attribute and added the features for set request header i.e.
beforeSend: function (xhr) {
xhr.setRequestHeader('UserType', session().UserType)
}
The example code are given below
$("#Coustomers").kendoComboBox({
placeholder: "--
Select --",
dataTextField: "Value",
dataValueField: "ID",
filter: "contains",
autoBind: false,
minLength: 1,
dataSource: {
transport: {
read: {
url: "localhost://3454/API/Company/GetCoustomers/1"
},
beforeSend: function (xhr) {
xhr.setRequestHeader('UserType', session().UserType)
},
dataType: "json"
}
}
});