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

Issue with Min/Max Property

3 Answers 256 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 10 Feb 2020, 02:09 AM

I am applying a min/max property to the DatePicker but it doesn't work as expected in the UI.

In this example my Min is 7/24/18 and the current value that is bound to the property is 10/08/18.

When I bring up the Calendar UI, I can see that the month of July is enabled and that June is disabled. But when I click on July it actually brings up October.

Made a small video of it but can't upload it.

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 10 Feb 2020, 08:50 AM

Hi Roger,

In a support ticket you can attach archives, the forums only allow images.

If you like, you could also upload the video to some cloud storage (like a google drive, etc.).

In the meantime, could you check if this is what you are affected by: https://feedback.telerik.com/blazor/1444160-min-and-max-don-t-limit-the-text-input-only-the-calendar?

Can you reproduce a problem with:

  • the following snippet (the parameters have both getters and setters)
    <TelerikDatePicker @bind-Value="@date" Min="@min" Max="@max"></TelerikDatePicker>
    
    @code{
        DateTime date { get; set; } = DateTime.Now;
        DateTime min { get; set; } = DateTime.Now.AddDays(-50);
        DateTime max { get; set; } = DateTime.Now.AddDays(50);
    }
  • our latest version (2.7.0 at the moment)

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
Roger
Top achievements
Rank 1
answered on 10 Feb 2020, 05:50 PM

Looks like the issue that I am running into is different.

Video
https://drive.google.com/open?id=1eYhQVDpS_hgkarEFtgx5Nq2gCR0rfbRc

0
Marin Bratanov
Telerik team
answered on 10 Feb 2020, 06:14 PM

Hi Roger,

Please modify my previous snippet to showcase this issue, as I am not sure how to reproduce it - both our demos and my previous snippet work fine for me, which indicates something specific must be happening in this case - either some setup on the component is wrong, or I am missing something.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Tags
DatePicker
Asked by
Roger
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Roger
Top achievements
Rank 1
Share this question
or