Hi, hopefully a quick solution here.
I have a grid showing data from a remote data source, code is below inc JSON sample. All works fine apart from filtering on the date column, which then gives a JS error "no method getTime()". I believe this is because the dates returned in the JSON datasource are actually in string format rather than a date object.
If this is the case, or if there is something else I'm missing can someone please help out?
thanks.
 
 
 
A sample of the JSON data is:
                                I have a grid showing data from a remote data source, code is below inc JSON sample. All works fine apart from filtering on the date column, which then gives a JS error "no method getTime()". I believe this is because the dates returned in the JSON datasource are actually in string format rather than a date object.
If this is the case, or if there is something else I'm missing can someone please help out?
thanks.
//  modelsvar ftModel_EventLog = kendo.data.Model.define({        id: "EventLog_ID",        fields: {            EventLog_ID: { type: "number" },            EventLog_EntryDate: { type: "date" },            EventLog_Message: { type: "string" }        }    });//  dataSource    var ftDataSource_EventLog = new kendo.data.DataSource({        transport: {            read: {                url: "Services/Grid.aspx",                data: {                    src: "eventlog"                },                dataType: "json"            }        },        schema: {            data: function (data) {                return eval(data.data);            },            model: ftModel_EventLog        }    });//  start of functionsfunction ftLoadContent_EventLog() {    $(".grid").kendoGrid({        dataSource: ftDataSource_EventLog,        filterable: true,        height: 380,        sortable: true,        columns: [            { field: "EventLog_Message", title: "Message" },            { field: "EventLog_EntryDate", title: "Entry Date" }        ]    });}A sample of the JSON data is:
{"data":[{"EventLog_ID":"1","EventLog_Message":"This is an event.","EventLog_EntryDate":"01/02/2012 17:34:22"},{"EventLog_ID":"2","EventLog_Message":"This is another event.","EventLog_EntryDate":"01/02/2012 17:34:45"}]}