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

RadMaskedTextInput ErrorMessage Location

1 Answer 116 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 22 Aug 2013, 05:17 PM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 27 Aug 2013, 02:23 PM
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 >>
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Diego
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or