Back to Devexpress

DxScheduler.StartDateChanged Event

blazor-devexpress-dot-blazor-dot-dxscheduler-c4cc28fe.md

latest1.8 KB
Original Source

DxScheduler.StartDateChanged Event

Fires after the Scheduler start date is changed.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public EventCallback<DateTime> StartDateChanged { get; set; }

Parameters

TypeDescription
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

DxScheduler Class

DxScheduler Members

DevExpress.Blazor Namespace