I am trying to bind a DataSource to my DateTimePicker widget but I'm somewhat at a loss as to whether this actually works and how the data could be defined. Currently I'm using the following code.
And the server is returning json with the following format, I can change this part easily but I'm not sure what DateTimePicker is expecting.
var timeSource = new kendo.data.DataSource({
transport: {
read: {
url : "/cgi-bin/system.cgi?time",
dataType : "json"
}
}
});
$("#datetimepicker").kendoDateTimePicker({
dataSource: timeSource
});
And the server is returning json with the following format, I can change this part easily but I'm not sure what DateTimePicker is expecting.
[ { "time" : "Wed Oct 24 10:26:46 MDT 2012" } ]