Hi,
I am using the new multiselect widget with server filtering enabled. The issue that I am facing is that I am not able to retrieve the entered text (using the javascript function onAdditionalData) and send it to the server side for filtering. Please see example below:
$("#merchants").kendoMultiSelect({
dataSource: {
transport: {
prefix: "",
read: {
url: "GetMerchants",
data: onAdditionalData
}
},
serverFiltering: true,
filter: [],
schema: { "errors": "Errors" },
},
placeholder: "Select merchants...",
dataTextField: "Name",
dataValueField: "Id",
filter: 'contains'
});
function onAdditionalData() {
return {
text: $("#merchants").value()
};
}
Thanks,
Nitesh
I am using the new multiselect widget with server filtering enabled. The issue that I am facing is that I am not able to retrieve the entered text (using the javascript function onAdditionalData) and send it to the server side for filtering. Please see example below:
$("#merchants").kendoMultiSelect({
dataSource: {
transport: {
prefix: "",
read: {
url: "GetMerchants",
data: onAdditionalData
}
},
serverFiltering: true,
filter: [],
schema: { "errors": "Errors" },
},
placeholder: "Select merchants...",
dataTextField: "Name",
dataValueField: "Id",
filter: 'contains'
});
function onAdditionalData() {
return {
text: $("#merchants").value()
};
}
Thanks,
Nitesh