Back to Devexpress

SchedulerToolbarInfo Class

blazor-devexpress-dot-blazor-c02cb315.md

latest1.8 KB
Original Source

SchedulerToolbarInfo Class

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

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
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:

razor
<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

SchedulerToolbarInfo Members

DevExpress.Blazor Namespace