RadDateTimePicker

0 Answers 93 Views
DateTimePicker
alex
Top achievements
Rank 2
Bronze
Iron
Iron
alex asked on 28 Nov 2022, 07:03 PM | edited on 08 Feb 2023, 07:28 PM

Hello, 

I created a new template for the RadDateTimePicker because I overrided the Clock Part.

As part of the changes I added a Tooltip which shows the date time if not null. In the Watermark control part of the template I show the SelectedValue property that is bound to the ViewModel - TwoWayBinding. The string format of the DateTime is full date: dd/MM/yyyy with full time: HH:mm:ss. So I see the parsed Text on the control. 

I can't find an easy way to show the tooltip in the same format as the display date. I can't set the Tooltio content to RelativeSource Path=SelectedValue because it shows the DateTime in orginal format.

I also can't show in the Tooltio the DisplatText because even if binding OneWay, the date is flickering in every change like binding is wrong.

In the Style of the RadDateTimePicker I have access to SelectedValue, SelectedDateTime,SelectedTime properties but it seems that you convert the Date Time to a text inside the control code because it doesn't work on the Tooltip.

 

Do you have any solution for that?

alex
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 29 Nov 2022, 04:33 PM | edited

I fixed the CurrentDateTimeText format and now the Tooltip shows the updated property.

You may close this issue.

No answers yet. Maybe you can help?

Tags
DateTimePicker
Asked by
alex
Top achievements
Rank 2
Bronze
Iron
Iron
Share this question
or