DxScheduler.StartDateChanged Event
Fires after the Scheduler start date is changed.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public EventCallback<DateTime> StartDateChanged { get; set; }
Parameters
Type | Description |
---|---|
DateTime | The new start date. |
Remarks
The Scheduler’s first visible date is specified by the StartDate property. The StartDateChanged
event fires each time the StartDate property’s value changes.
For example, you can handle this event to synchronize the range of dates in the Scheduler with labels on a separate status bar. When a user navigates through the Scheduler’s dates, the corresponding labels (dates) in the status bar are automatically updated.
<DxScheduler StartDate="@(new DateTime(1990, 01, 07, 00, 00, 00))"
StartDateChanged="@OnStartDateChanged"
DataStorage="@DataStorage">
<DxSchedulerWeekView ShowWorkTimeOnly="true"></DxSchedulerWeekView>
</DxScheduler>
@code {
...
void OnStartDateChanged (DateTime newStartDate) {
/// Your code that handles the start date changes
}
}
See Also