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

2 posts, 0 answers
  1. Ollie
    Ollie avatar
    19 posts
    Member since:
    Jun 2012

    Posted 03 Jun 2013 Link to this post

    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>
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 06 Jun 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top