For the Kendo DatePicker, if you try to set the size on a kendo-datepicker with plain text, it will not render and give a console error of "ERROR TypeError: Cannot read properties of undefined (reading 'nativeElement')".
Errors:
// HTML
<kendo-datepicker size="small" ... />
---
But on the other hand, it does work if you create a field of type "DateInputSize" and pass that variable to the size.
Works:// TS
protected size: DateInputSize = 'small';
// HTML
<kendo-datepicker [size]="size" ... />
Hello Chris,
Upon further digging, I found this GitHub Issue where the error was logged. Since this bug is fixed, I will go ahead and mark this bug report as 'Completed'.
Let me know if you have any further questions.
Regards,
Hetali
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi Chris,
The error got fixed in the Kendo UI DatePicker v23.1.0 along with the autofill property.
This is the StackBlitz example using the Kendo UI DateInputs package v23.1.0.
I hope this information helps.
Regards,
Hetali
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi Chris,
Upon using the size property in the Kendo UI DatePicker v22.0.1, the error can be reproduced as seen in this StackBlitz example and the screenshot below:
However, this issue cannot be reproduced in the latest version (v24.2.0). Here's a StackBlitz example demonstrating the size property in the latest DatePicker version.
Output:
Please update the DateInputs package to the latest version and let me know if it fixes the issue on your end. Looking forward to hearing from you.
Regards,
Hetali
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.