RadMaskedTextInput ErrorMessage Location

2 posts, 1 answers
  1. Diego
    Diego avatar
    13 posts
    Member since:
    Aug 2012

    Posted 22 Aug 2013 Link to this post

    Hi, 

    i'm using the RadMaskedTextInput with NotifyOnValidationError and it works great. Currently it displays the message beside the textbox, but i need to show the error message below the textbox, how can i achieve this?
  2. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 27 Aug 2013 Link to this post

    Hi Diego,

    There is no built-in functionality the allows you to make such customization out of the box. However, you can achieve your requirement by extracting and editing the default ControlTemplate of the RadMaskedTextInput control.

    When you extract the default template you will be able to find a ControlTemplate called "TextBoxErrorTemplate" this template is applied to the ErrorMassage. Inside it you will be able to find a StackPanel which Orientation property is set to Horizontal. Please try changing it to Vertical and let me know if this works for you.

    For your convenience I implemented this approach in the attached project.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top