Hello.
I want to create grid where in some of the columns would be a datepicker just to select the time.
Here is a data which I recive (1 record sample) : {shopID: 16, scheduleDay: "2000-01-01T00:00:00", shopWorkingHourID: 1,…}
Here is my model schema :
schema: {
model: {
fields: {
shopID: "shopID",
scheduleDay: "scheduleDay",
workStartHour: "workStartHour",
workEndHour: "workEndHour",
}
}
}
Here is my column configuration :
columns: [
{
field: "shopID"
},
{
field: "scheduleDay",
format: "{0:yyyy/MM/dd}"
},
{
field: "workStartHour",
editor: function (container, options) {
console.log('here');
var input = $("<input/>");
input.attr("workStartHour", options.model.workStartHour);
input.appendTo(container);
input.kendoTimePicker({});
},
format:"{0:HH:mm}",
}]
Time is displayed correctly but I cannot pick the time, even picker isn't shown.
Some crucial information
* I've tried convert data I receive to new Date
* I've included scripts corectly
* I don't get any errors
I'll take any advice how to make this work.