Completed
Last Updated: 13 Jul 2022 10:31 by ADMIN
Release Release 2.0.0
Daniel
Created on: 11 Apr 2022 12:48
Category: DatePicker
Type: Bug Report
1
Pickers: Format properties cannot be set through implicit style

If you create an implicit style for DatePicker, for example, like this:

<Style TargetType="telerikInput:RadDatePicker">
    <Setter Property="SpinnerFormat" Value ="yyy/MMM/dd"/>
    <Setter Property="DisplayStringFormat" Value ="yyyy/MMM/dd"/>
    <Setter Property="IsClearButtonVisible" Value ="True"/>
    <Setter Property="IsToggleButtonVisible" Value ="True"/>
</Style>

an "object reference not set to an instance of an object" exception is raised.

As a temporary workaround, set the SpinnerFormat and DisplayStringFormat properties directly to the DatePicker instance.

0 comments