I am using Kendo dropdownlist with server side filtering using jquery in mvc,i'm facing one issue like when i type any special character like ? & ‘ - ..etc,the filter is not working
I have tried to debug the code in backend, in Request.Params.Get("filter[filters][0][value]") the value is getting null
is there any setting to filter special characters in search filter? please let me know
below is the code that i have used.
$('#kendodrop').kendoMultiSelect({
placeholder: "Select",
dataTextField: "Text",
dataValueField: "Id",
filter: "contains",
filtering: function (e) {
var filter = e.filter;
if (filter != undefined && !filter.value) {
//prevent filtering if the filter does not value
e.preventDefault();
}
},
noDataTemplate: 'No Data!',
height: 290,
virtual: {
itemHeight: 26,
valueMapper: function (options) {
$.ajax({
url: '../controller/valueMapper',
type: "GET",
dataType: "jsonp",
success: function (data) {
options.success(data);
}
})
}
},
dataSource: {
transport: {
read: {
type: "POST",
url: "../controller/getdata",
dataType: "json",
},
parameterMap: function (options) {
return options;
}
},
schema: {
data: 'data',
total: 'total',
fields: [
{ field: 'Id', type: 'number' },
{ field: 'Text', type: 'string' }
]
},
pageSize: 44,
serverPaging: true,
serverFiltering: true
},
dataBound: function (e) {
//prevent the click event for disabled ones
$(".optiondisable").parent().click(false);
$(".optiondisable").parent().css("background-color", "#E4E6E9");
//var listContainer = e.sender.list.closest(".k-list-container");
//listContainer.width(listContainer.width() + kendo.support.scrollbar());
e.sender.list.find("li").addClass("k_advautowrap");
deffered.resolve();
}
});