MaskedEditBox: Localize invalid input message

5 posts, 1 answers
  1. Francois
    Francois avatar
    52 posts
    Member since:
    Dec 2010

    Posted 14 Sep 2011 Link to this post

    Hi, I would like to change the text displayed in the ErrorProvider when the validation fails; how can I do that?

    Thanks!
  2. Francois
    Francois avatar
    52 posts
    Member since:
    Dec 2010

    Posted 16 Sep 2011 Link to this post

    Hmm...Cannot be done?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Peter
    Admin
    Peter avatar
    1148 posts

    Posted 19 Sep 2011 Link to this post

    Hello Francois,

    Thank you for writing.

    Please consider the code below:

    ((RegexMaskTextBoxProvider)radMaskedEditBox1.MaskedEditBoxElement.Provider).ErrorMessage = "Il ya une erreur!";

    I hope this helps. If you need further assistance, I will be glad to help.

    Regards,
    Peter
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Francois
    Francois avatar
    52 posts
    Member since:
    Dec 2010

    Posted 27 Sep 2011 Link to this post

    Thank you, it works.

    Any plans to make it global using the LocalizationProviders?
  6. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 30 Sep 2011 Link to this post

    Hello Francois,

    We will introduce this as a property in RadMaskedEditBox control instead of using a localization provider, because there is only one string to be localized.

    If you have any other questions or comments, please let me know.

    Best wishes,
    Peter
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
UI for WinForms is Visual Studio 2017 Ready