Back to Devexpress

TextBoxBuilder.MaskInvalidMessage(String) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-textboxbuilder-dot-maskinvalidmessage-x28-system-dot-string-x29.md

latest1.3 KB
Original Source

TextBoxBuilder.MaskInvalidMessage(String) Method

A message displayed when the entered text does not match the specified pattern. Mirrors the client-side maskInvalidMessage option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TextBoxBuilder MaskInvalidMessage(
    string value
)

Parameters

NameTypeDescription
valueString

The option value.

|

Returns

TypeDescription
TextBoxBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().TextBox()
    .MaskInvalidMessage("My message")
)

See Also

TextBoxBuilder Class

TextBoxBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace