DateEditProperties.ShowOutOfRangeWarning Property
Gets or sets a value that specifies whether a warning message is displayed when an end-user types a date that is out of the range specified by the DateEditProperties.MinDate and DateEditProperties.MaxDate properties.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
Remarks
When the DateEditProperties.MinDate or DateEditProperties.MaxDate property is specified, the dates that are out of the specified range cannot be entered into the date editor by end-users either by typing within the editor’s edit box or using the dropdown calendar. In the dropdown calendar, these dates are displayed using a specific style (CalendarProperties.DayOutOfRangeStyle) and don’t respond to user clicks.
When the ShowOutOfRangeWarning property is set to true
, a warning message is displayed when an end-user types an unavailable date in the editor’s edit box. Note, after the editor loses focus, the date is automatically changed to the last specified allowed date.
Example 1
<dx:ASPxDateEdit ID="myDateEdit" runat="server" ShowOutOfRangeWarning="True" MinDate="2014-10-01" MaxDate="2014-10-31">
</dx:ASPxDateEdit>
Example 2
<dx:ASPxDateEdit ID="myDateEdit" runat="server" ShowOutOfRangeWarning="True" MinDate="2014-10-01">
</dx:ASPxDateEdit>
Example 3
<dx:ASPxDateEdit ID="myDateEdit" runat="server" ShowOutOfRangeWarning="True" MaxDate="2014-10-31">
</dx:ASPxDateEdit>
Note
The ShowOutOfRangeWarning property synchronizes its value with the editor’s ASPxDateEdit.ShowOutOfRangeWarning property.