Back to Devexpress

DateBoxBuilder.DateOutOfRangeMessage(String) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-dateboxbuilder-dot-dateoutofrangemessage-x28-system-dot-string-x29.md

latest1.4 KB
Original Source

DateBoxBuilder.DateOutOfRangeMessage(String) Method

Specifies the message displayed if the specified date is later than the max value or earlier than the min value. Mirrors the client-side dateOutOfRangeMessage option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public DateBoxBuilder DateOutOfRangeMessage(
    string value
)

Parameters

NameTypeDescription
valueString

The option value.

|

Returns

TypeDescription
DateBoxBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().DateBox()
    .DateOutOfRangeMessage("My message")
)

See Also

DateBoxBuilder Class

DateBoxBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace