I m having a kendo grid in my page. I need to search the data from the controller using external search. So i set the serverFiltering of datasource to true for that. Its working wonderfully. But I need to enable Grid filtering also. So I set the filterable to true. Here comes the problem the grid's bult in grid filtering functionality is not working when I set the server filtering to true. Its always post to the controller. When I set the server filtering to false its working. Here's my datasource
Also when I set the serverfiltering to false. Its working fine. But for both the date fields its throwing format error when filter by dates.
In my grid's row template I am showing the date by format it by.
Can anyone figure this out???
ds= new kendo.data.DataSource({ transport: { read: { url: 'method', dataType: "json", type: "POST", contentType: "application/json; charset=utf-8" }, parameterMap: function (options) { return JSON.stringify({ filter: options }); } }, schema: { model: { fields: { Id: { type: "number" }, Name: { type: "string" }, Age: { type: "number" }, BeginDate: { type: "date" }, EndDate: { type: "date" }, Mode: { type: "string" } } } } });
Also when I set the serverfiltering to false. Its working fine. But for both the date fields its throwing format error when filter by dates.
In my grid's row template I am showing the date by format it by.
<td># if(EndDate!=null){# #= kendo.toString(toDate(EndDate), "MM/dd/yyyy")# #} else {# ${EndDate}#}#</td>
Can anyone figure this out???