Skip to main content
Tab

SpinEditProperties.ShowOutOfRangeWarning Property

Gets or sets a value that specifies whether a warning message is displayed when an end-user types a number that is out of the range specified by the SpinEditProperties.MinValue and SpinEditProperties.MaxValue properties.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public bool ShowOutOfRangeWarning { get; set; }

Property Value

Type Default Description
Boolean true

true, if the message is displayed, otherwise, false.

Remarks

When the SpinEditProperties.MinValue and SpinEditProperties.MaxValue properties are specified, the numbers that are out of the specified range cannot be entered into the spin editor by end-users either by typing within the editor’s edit box or by clicking editor buttons.

The ShowOutOfRangeWarning property controls whether a warning message is displayed when an end-user types an unavailable number in the editor’s edit box. Note, after the editor loses focus, the number is automatically changed to the nearest allowed number.

Example

<dx:ASPxSpinEdit ID="mySpinEdit" runat="server" Number="0" MaxValue="50" MinValue="10" ShowOutOfRangeWarning="True">
</dx:ASPxSpinEdit>

ASPxSpinEdit_Warning

Note

The ShowOutOfRangeWarning property synchronizes its value with the editor’s ASPxSpinEdit.ShowOutOfRangeWarning property.

See Also