Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
[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.

Razor
<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
  }

}

View Example: How to Load Appointments for Visible Data Range Only

See Also