Default DateEdit

This example demonstrates the Bootstrap Date Edit control with default settings. The Bootstrap Date Edit control is a date editor control that combines the functionality of a single-line text editor, button editor, and drop-down calendar.

<dx:BootstrapDateEdit runat="server" Date="1.1.2017">
</dx:BootstrapDateEdit>

Multi-Month View

This example illustrates the multi-month view feature. The drop-down calendar of the Date Edit control below simultaneously displays multiple months, organizing them into several rows and columns.

<dx:BootstrapDateEdit runat="server">
    <CalendarProperties Columns="2"></CalendarProperties>
</dx:BootstrapDateEdit>

Disabled Dates

In this example, some of the dates displayed by the Date Edit control's drop-down calendar are disabled, so they appear grayed out and cannot be selected. The control provides two approaches to disabling dates.

<dx:BootstrapDateEdit ID="DateEdit3" runat="server" OnCalendarCustomDisabledDate="DateEdit_CustomDisabledDate">
    <ClientSideEvents CalendarCustomDisabledDate="onCustomDisabledDate" />
</dx:BootstrapDateEdit>

Null Text

This example illustrates how the NullText property can be used to display prompt text (watermark) in the editor's edit box. Specified text is displayed when the value of the editor is null and the editor is not focused. The prompt text disappears when the editor receives focus.

<dx:BootstrapDateEdit runat="server" NullText="Enter Your Birth Date">
</dx:BootstrapDateEdit>

Mask

In this example, the Date Edit control takes advantage of the masked input feature to only accept values in a specific date format. The mask is specified using the EditFormatString property.

<dx:BootstrapDateEdit runat="server" Date="1.1.2017" EditFormat="Custom" EditFormatString="MMMM dd, yyyy" UseMaskBehavior="true">
</dx:BootstrapDateEdit>

Display Format

The DisplayFormatString property specifies the pattern used to format the value of an editor for display purposes when the editor is not focused. Display values can be formatted using the standard formatting mechanism described in MSDN. For more information about composing format patterns, see the following MSDN topic: Formatting Types.

<dx:BootstrapDateEdit runat="server" Date="1.1.2017" DisplayFormatString="D">
</dx:BootstrapDateEdit>

Caption and HelpText

In this example, the Date Edit control displays a caption on the top and auxiliary help text at the bottom of the editor.

<dx:BootstrapDateEdit runat="server" Caption="Birthday" HelpText="Enter your birthday">
    <ValidationSettings RequiredField-IsRequired="true"></ValidationSettings>
</dx:BootstrapDateEdit>
Screen Size
Color Themes
Demo QR Code