DisplayDateStart is not working as expected

0 Answers 22 Views
DatePicker
Massimo
Top achievements
Rank 1
Massimo asked on 25 May 2021, 03:46 PM | edited on 26 May 2021, 08:24 AM

Hello,

I have some troubles for getting the RadDatePicker working as expected, while using the propertiy 'DisplayDateStart'. Here my code:

At the start, when I select a date from the first RadDatePicker (valid from), the other one is working correctly (see the ok.png). But if I choose another date (minor to the previous one) some date are still greyed out on the second control (Valid To, see the not_ok.png --> the date 1,2,3,4,5 cannot be selected). I'm not able to reproduce the same error on the other side, changing the valid to control. 

 

Edit:

I found that these controls inherit implicity from a style that has:

        <Setter Property="SelectableDateStart"
                Value="{StaticResource MinimumAllowedDate}" />
        <Setter Property="DisplayDateStart"
                Value="{StaticResource MinimumAllowedDate}" />

where MinimunAllowedData is equal to     <system:DateTime x:Key="MinimumAllowedDate">1/1/1900</system:DateTime>

Removing the SelectableDateStart solve the issue. Still not sure why is this behavior happening?

If I change the control in this way

I still get the error.

 

Are you aware of this behaviour? Or am I missing something? Thank you.

No answers yet. Maybe you can help?

Tags
DatePicker
Asked by
Massimo
Top achievements
Rank 1
Share this question
or