Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.68 KB

validation.md

File metadata and controls

43 lines (27 loc) · 1.68 KB
title page_title description position slug
Validation Message
.NET MAUI MaskedEntry Documentation - Validation Message
Learn more about the built-in validation error messages and how to define a custom error message in the Telerik UI for .NET MAUI MaskedEntry.
7
maskedentry-validation

.NET MAUI MaskedEntry Validation Message

The Telerik MaskedEntry for .NET MAUI provides a built-in validation message. If the user is entering an input that does not match the mask requirements, the MaskedEntry will display an error message.

Default Error Message

The MaskedEntry supports a default validation error message that is based on the used masked type:

  • EmailMaskedEntry—Supports the E-Mail is not valid error message.

  • RegexMaskedEntry—Supports the Input does not match the regex error message.

Custom Error Message

To customize the default validation error message, use the ValidationErrorMessage(string) property.

  • Custom Validation Error Message for the EmailMaskedEntry
  • Custom Validation Error Message for the RegexMaskedEntry

For the MaskedEntry Validation Error Message example, go to the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and navigate to MaskedEntry -> Features category.

See Also

  • [Mask Types]({%slug maskedentry-masked-types%})
  • [Setting Value]({%slug maskedentry-value%})
  • [Null Values Support]({%slug maskedentry-value%}#null-value-support})
  • [Prompt Character]({%slug maskedentry-prompt-character%})
  • [Events]({%slug maskedentry-events%})
  • [Globalization]({%slug maskedentry-globalization%})