I believe there is a bug in remote filtering dates. The value doesn't appear to show up anywhere in the querystring. Here is my grid:
and attached is a picture of the request in fiddler. The operator, field, and logic show up. Where is the value at?
<div id=
"grid"
></div>
<script type=
"text/javascript"
>
var
dateRegExp = /^\/Date\((.*?)\)\/$/;
function
toDate(value) {
var
date = dateRegExp.exec(value);
return
new
Date(parseInt(date[1]));
}
$(document).ready(
function
() {
var
url =
'@Url.Action("Grid")'
;
var
dataSource =
new
kendo.data.DataSource({
serverPaging:
true
,
serverSorting:
true
,
serverFiltering:
true
,
pageSize: 200,
transport: {
read: {
type:
'post'
,
dataType:
'json'
,
url: url
}
},
schema: {
data:
'data'
,
total:
'total'
,
model: {
id:
'EmployeeId'
,
fields: {
Name: { type:
'string'
},
Email: { type:
'string'
},
EmployeeNumber: { type:
'number'
},
HireDate: { type:
'date'
},
Active: { type:
'boolean'
}
}
}
}
});
$(
'#grid'
).kendoGrid({
dataSource: dataSource,
height: 400,
columns: [
{ field:
'Name'
, title:
'Name'
},
{ field:
'Email'
},
{ field:
'EmployeeNumber'
, title:
'Emplyee #'
},
{ field:
'HireDate'
, title:
'Hire Date'
, template:
'#= kendo.toString(toDate(HireDate), "MM/dd/yyyy")#'
},
{ field:
'Active'
}
],
filterable:
true
,
sortable: {
mode:
'multiple'
},
scrollable: {
virtual:
true
}
});
});
</script>
and attached is a picture of the request in fiddler. The operator, field, and logic show up. Where is the value at?