incorrect display of calendar in kendo -datepicker

1 Answer 33 Views
DatePicker
Maveric
Top achievements
Rank 2
Maveric asked on 26 Apr 2023, 10:12 AM

We set date range with a min date and max date( ex: 26/04/1953 - 26/04/2007)

If we don't set a value , the calendar doesn't display correctly

We attach a example with Stackblitz

We have the probleme wtih version 11.6.0 but it exactly the same with version 12.0.0 in Stackblitz

 

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 01 May 2023, 06:38 AM

Hi Eric,

An answer has been given by our support team within the private thread that was initiated for the same question. I will provide a copy of the answer here for public knowledge and do feel free to choose one thread to continue the conversation if needed.

This is caused by the configuration of the component and that the min and max are being set, but the component doesn't have a specified value (ngModel in this case).

When the value (ngModel) property is left empty, by default the current date is highlighted when the popup is opened. Since the min and max dates don't match the current date, such a view is expected to appear.

In these lines of words, please try setting an initial date to the DatePicker when min and max are specified.

Regards,
Yanmario
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.

Tags
DatePicker
Asked by
Maveric
Top achievements
Rank 2
Answers by
Yanmario
Telerik team
Share this question
or