Error tool tip on masked input textbox similar to WPF textbox

3 posts, 1 answers
  1. Vivek
    Vivek avatar
    33 posts
    Member since:
    Oct 2012

    Posted 09 May 2013 Link to this post


    I want the error tool tip on masked text similar to normal WPF textbox. Please find attached images.
    I also want the border of the masked input text to be red when an invalid number given as input. 
    Could you help me to achieve this? 
    I am not sure whether this request raised by anyone but i couldn't find the solution in any of the threads.
    Let me know if you need more information on this.

  2. Answer
    Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 14 May 2013 Link to this post

    Hello Vivek,

    The RadMaskedInput controls have a default ValidationTemplate which can be customized to better fit in your application design. This template is applied through the Validation.ErrorTemplate attached property:
    <telerik:RadMaskedNumericInput x:Name="radMaskedNumericInput"
        ErrorMessage="{Binding Path=Text,
        Validation.ErrorTemplate="{StaticResource TextBoxErrorTemplate}"
        Value="{Binding Path=DoubleValue,
                        ValidatesOnExceptions=True}" />

    I attached a sample solution demonstrating how to customize the ErrorTemplate of the MaskedNumericInput control to display only a Red border around the control. You can further customize this template to better fit your needs.

    Please let us know if you need further assistance.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Vivek
    Vivek avatar
    33 posts
    Member since:
    Oct 2012

    Posted 14 May 2013 Link to this post

    Thanks Tina, that helps. I will let you know if i need any more help.

    Regards, Vivek
Back to Top