Skip to main content

NumberBoxBuilder.InvalidValueMessage(String) Method

Specifies the text of the message displayed if the specified value is not a number. Mirrors the client-side invalidValueMessage option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public NumberBoxBuilder InvalidValueMessage(
    string value
)

Parameters

Name Type Description
value String

The option value.

Returns

Type Description
NumberBoxBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().NumberBox()
    .InvalidValueMessage("My message")
)
See Also