This is a migrated thread and some comments may be shown as answers.

DateTimePicker DataSource

0 Answers 158 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Sébastien
Top achievements
Rank 1
Sébastien asked on 24 Oct 2012, 04:27 PM
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.

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" } ]

No answers yet. Maybe you can help?

Tags
Date/Time Pickers
Asked by
Sébastien
Top achievements
Rank 1
Share this question
or