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

How to get RadDatePicker to show Error tooltip when exception is thrown in bound property

1 Answer 162 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Ollie
Top achievements
Rank 1
Ollie asked on 03 Jun 2013, 02:06 PM
I have the following XAML and I want the error tooltip to show when I throw and exception from the ViewModel property CobDate.

It will show the error tool tip when the CobDate is invalid text, e.g. 'aaaasss' but when it is a valid date but greater then the SelectableDateEnd it will not show the error tool tip when I throw an exception from the ViewModel, it does highlight the textbox of the control with a red border but I want the error tooltip to show as well.

How can I get the error tooltip to show?

<telerik:RadDatePicker DisplayFormat ="Long"
          x:Name="cobDatePicker"
          Width="150"
          SelectableDateStart="{Binding MinDate, Mode=OneWay}"
          SelectableDateEnd="{Binding MaxDate, Mode=OneWay}"
          BlackoutDates="{Binding DisabledDates, Mode=OneWay}"
          ErrorTooltipContent="Invalid Date!"
          AutomationProperties.AutomationId="CobDatePicker">
               <telerik:RadDatePicker.SelectedDate>
                   <Binding Path="CobDate"
                        Mode="TwoWay"
                        ValidatesOnExceptions="False"
                        UpdateSourceTrigger="PropertyChanged">
                       <Binding.ValidationRules>
                           <ExceptionValidationRule />
                       </Binding.ValidationRules>
                   </Binding>
               </telerik:RadDatePicker.SelectedDate>
           </telerik:RadDatePicker>

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Jun 2013, 07:38 AM
Hi Ollie,

I am afraid that we do not have Validation ToolTip for RadDatePicker or any other RadControl for WPF - it is available only for Silverlight.
We're following the standard WPF controls behavior which do not provide validation tooltip as well.

We're sorry for any inconvenience caused.

Regards,
Yana
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DatePicker
Asked by
Ollie
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or