Kendo Form with empty datepicker field

1 Answer 88 Views
Date/Time Pickers Form General Discussions
Mike
Top achievements
Rank 1
Iron
Mike asked on 09 Nov 2023, 07:25 PM | edited on 09 Nov 2023, 09:54 PM

If you look at the demo of the Kendo Form the date value works great when you populate the date.  If you have an empty date the calendar icon does not appear and you don't get the datepicker.

https://demos.telerik.com/kendo-ui/form/index

How do I tell the form to present a datepicker field when the date field is empty?

 

It appears that if the field Label has 'Date' in it it assumes its a date field, but not if its left blank.

I can assign the field to to kendodatepicker but the calendar icon is then in the misplaced.

I modified the demo to show what I am talking about in the attached.

1 Answer, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
Iron
answered on 13 Nov 2023, 08:03 PM

Support got back to me and the answer is to add the editor attribute with the value DatePicker.  Once I did that I see the icon.

{
                                field: "mydate",
                                label: "My Date",
                                colSpan: 1,
                                validation: { required: false } ,
                                editor: "DatePicker"
                            }
Tags
Date/Time Pickers Form General Discussions
Asked by
Mike
Top achievements
Rank 1
Iron
Answers by
Mike
Top achievements
Rank 1
Iron
Share this question
or