telerik:ValidationErrorTemplateHelper.ShowWhenFocused = "True" doesn't work on RadDateTimePicker with Theme="Expression_Dark"

1 Answer 23 Views
DateTimePicker
Xiwen
Top achievements
Rank 1
Xiwen asked on 07 Dec 2022, 03:54 AM

Helloļ¼š

About the RadDateTimePicker,

when I set the telerik:ValidationErrorTemplateHelper.ShowWhenFocused = "True"

It only doesn't work on Theme="Expression_Dark".

The others themes seems no problem.

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 08 Dec 2022, 02:19 PM

Hi Xiwen,

We are aware of this problem and our developer team is working on it. The fix will be available with the upcoming release.

As a workaround, you can use the code snippet below:

<Style TargetType="telerik:RadDateTimePicker" BasedOn="{StaticResource RadDateTimePickerStyle}">
    <Style.Triggers>
        <Trigger Property="telerik:ValidationErrorTemplateHelper.ShowWhenFocused" Value="True">
            <Setter Property="Validation.ErrorTemplate" Value="{StaticResource StaticValidationOnFocusTooltipTemplate}" />
        </Trigger>
    </Style.Triggers>
</Style>

I hope it helps.

Regards,
Masha
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
DateTimePicker
Asked by
Xiwen
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or