Hi
I created following example to illustrate what I am trying to achieve: http://dojo.telerik.com/IRaYU
At the top there is a simple Kendo DateTimePicker to which I have added parseFormats like so:
$(
"#datetimepicker"
).kendoDateTimePicker({
format:
"dd.MM.yyyy HH:mm"
,
value:
new
Date(),
parseFormats:[
"dd MM yyyy HH mm"
,
"dd MM yyyy HHmm"
,
"dd MM yyyy HH:mm"
,
"dd MM HH mm"
,
"dd MM HHmm"
,
"dd MM HH:mm"
]
});
So it is possible to type 24 6 14 55 which translates to 24.June.2014 14:55.
I am trying to achieve the same for my custom template for the scheduler (add the same functionality).
The custom template for the scheduler looks like this:
<script id=
"editor"
type=
"text/x-kendo-template"
>
<h3>Edit meeting</h3>
<p>
<label>Title: <input name=
"title"
/></label>
</p>
<p>
<label>Start: <input data-role=
"datetimepicker"
name=
"start"
/></label>
</p>
<p>
<label>End: <input data-role=
"datetimepicker"
name=
"end"
/></label>
</p>
</script>
How can I add the "parseFormats" solution to the custom template?
Many thanks for any help