Skip to main content
All docs
V25.1
  • SchedulerToolbarInfo Class

    Allows you to access Scheduler API from toolbar item event handlers.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public class SchedulerToolbarInfo

    Remarks

    The SchedulerToolbarInfo object is passed as the context parameter to the ToolbarItems property. Use this parameter to call Scheduler methods.

    The following example calls the CreateAppointmentAsync method:

    Scheduler Context

    <DxScheduler StartDate="DateTime.Today"
                 DataStorage="DataStorage"
                 CssClass="my-scheduler">
        <Views>
            <DxSchedulerDayView ShowWorkTimeOnly="true" />
        </Views>
        <ToolbarItems>
            <DxSchedulerTodayToolbarItem />
            <DxSchedulerPreviousIntervalToolbarItem />
            <DxSchedulerNextIntervalToolbarItem />
            <DxToolbarItem Text="Create Appointment"
                           BeginGroup="true"
                           Click="@((i) => @context.Scheduler.CreateAppointmentAsync(new DateTime(2025, 03, 19, 9, 00, 00), new DateTime(2025, 03, 19, 10, 00, 00), false, null))" />
        </ToolbarItems>
    </DxScheduler>
    

    Inheritance

    Object
    SchedulerToolbarInfo
    See Also