Back to Devexpress

ASPxSpinEdit.ShowOutOfRangeWarning Property

aspnet-devexpress-dot-web-dot-aspxspinedit-b6208549.md

latest2.4 KB
Original Source

ASPxSpinEdit.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 ASPxSpinEdit.MinValue and ASPxSpinEdit.MaxValue properties.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(true)]
public bool ShowOutOfRangeWarning { get; set; }
vb
<DefaultValue(True)>
Public Property ShowOutOfRangeWarning As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Remarks

When the ASPxSpinEdit.MinValue and ASPxSpinEdit.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 disallowed number in the editor’s edit box. Note, after the editor loses focus, the number is automatically changed to the nearest allowed number.

Example

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

Note

This property is a wrapper of the SpinEditProperties.ShowOutOfRangeWarning property.

See Also

Spin Editor

ASPxSpinEdit Class

ASPxSpinEdit Members

DevExpress.Web Namespace