Skip to main content
A newer version of this page is available. .

DxCalendar<T>.SelectedDate Property

Specifies the selected date.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public T SelectedDate { get; set; }

Property Value

Type Description
T

The data type.

Remarks

Use the SelectedDate property to specify a selected date or to bind the date to a model’s field. The calendar supports DateTime and Nullable DateTime data types.

<DxCalendar @bind-SelectedDate="@SelectedDate" />

@code{
    DateTime SelectedDate { get; set; } = DateTime.Now;
}

The SelectedDateChanged event occurs each time the selection changes.

To enable multiple date selection in the calendar, set the EnableMultiSelect property to true. The SelectedDates collection stores all the selected dates.

See Also