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

YearViewPanel displays wrong values

3 Answers 39 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Joel asked on 18 Sep 2018, 06:01 PM

I have found that when scrolling through up and down the years that I get incorrect values.  I have attached pictures of these values.  Obviously, when I select 1990 I expect to get years listed between 1990 and 2000 but I don't get that.

 

<telerik:RadDatePicker
    Grid.Row="4"
    Grid.Column="2"
    Margin="20,5,5,5"
    MaxHeight="60"
    IsEnabled="True"
    Background="{DynamicResource PrimaryBackgroundBrush}"
    Foreground="{DynamicResource PrimaryForegroundBrush}"
    SelectedDate="{Binding Patient.DOB, Mode=TwoWay}"
    DisplayDateStart="{Binding Patient.DOBDateStart}"
    DisplayDateEnd="{Binding Patient.DOBDateEnd}"
    SelectableDateStart="{Binding Patient.DOBDateStart}"
    SelectableDateEnd="{Binding Patient.DOBDateEnd}"
    DateTimeWatermarkContent="Enter Birth Date"
    ToolTip="{Binding [0].ErrorContent}">
</telerik:RadDatePicker>

3 Answers, 1 is accepted

Sort by
0
Joel
Top achievements
Rank 2
Iron
Iron
Iron
answered on 18 Sep 2018, 06:16 PM
Looks like this is related to another forum post here:  https://www.telerik.com/forums/raddatepicker-break-when-copying-the-default-style
0
Joel
Top achievements
Rank 2
Iron
Iron
Iron
answered on 18 Sep 2018, 06:40 PM
Actually, close but no cigar.  I'm using the RadDatePicker.  Can you give me an updated style for this control?  Thanks.
0
Dilyan Traykov
Telerik team
answered on 21 Sep 2018, 10:31 AM
Hello Joel,

As per your request, I'm providing a small sample project with the extracted default RadCalendar style for the Office_Black theme applied to the RadDatePicker. Please note that if you're using another theme, you should edit its style accordingly.

Please also note that this project uses the implicit styles approach for styling the controls and if you're using the StyleManager you will need to copy all the required resources from the theme's Telerik.Windows.Controls.Input.xaml file.

Please let me know if using the style from this project solves your issue. If that is not the case, please let me know how I can reproduce the issue you described with the project I provided so that I can further investigate and assist you.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DatePicker
Asked by
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Dilyan Traykov
Telerik team
Share this question
or