ASPxClientCalendar.SetMinDate(date) Method
Sets the minimum date of the calendar.
Declaration
SetMinDate(
date: Date
): void
Parameters
Name | Type | Description |
---|---|---|
date | Date | A DateTime object representing the minimum date. |
Remarks
Use the ASPxClientCalendar.SetMaxDate method to specify the maximum date on the client side. To specify the minimum and maximum dates on the server, use the ASPxCalendar.MinDate and ASPxCalendar.MaxDate properties.
The ASPxClientCalendar.GetMaxDate and ASPxClientCalendar.GetMinDate methods are useful to obtain the minimum and maximum dates on the calendar.
Note
Note that a calendar minimum date value specified by the client SetMinDate method is not synchronized with the ASPxCalendar.MinDate property value.
When the ASPxCalendar.MinDate property is assigned on the server, its value is saved in the Control.ViewState. The Control.ViewState is saved on the page in a hidden field and cannot be modified on the client. When a postback is sent, the previous value of the ASPxCalendar.MinDate property (saved in ViewState) is applied and a new editor value becomes invalid and is changed to the previous one.