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

Name attribute does not accept dot syntax

1 Answer 313 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 22 May 2017, 12:42 PM

When I try to enter an object's property with dot syntax as the value of the name attribute that will not work, like so:

<kendo:datePicker name="person.birthdate" value="${person.birthdate}" format="dd.MM.yyyy">
</kendo:datePicker>

 

Note that the same syntax is accepted for the value attribute.

Most conspicuous is the missing button with calendar icon at the right hand side of the input field. Is that behaviour by design?

Best regards,
Marcus

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 24 May 2017, 10:21 AM
Hi Marcus,

The "name" attribute will be set to the "id" as well and such value could not be used for the "id" and the initialization of the widget will fail. You could use "_" instead of the dot for the name.



Regards,
Konstantin Dikov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Date/Time Pickers
Asked by
Marcus
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or