The requested page is not available for the requested platform. You are viewing the content for Default platform.

BuilderFactoryExtensions.BootstrapScheduler<TAppointment>(BuilderFactory, String) Method

Creates a strongly-typed Scheduler control with a specified name.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public static BootstrapSchedulerBuilder<TAppointment> BootstrapScheduler<TAppointment>(
    this BuilderFactory builderFactory,
    string name
)
<ExtensionAttribute>
Public Shared Function BootstrapScheduler(Of TAppointment)(
    builderFactory As BuilderFactory,
    name As String
) As BootstrapSchedulerBuilder(Of TAppointment)

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Scheduler settings.

name String

A control name.

Returns

Type Description
BootstrapSchedulerBuilder<TAppointment>

A builder for a Scheduler control.

Type Parameters

Name Description
TAppointment

An appointment type.

Remarks

Important

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

The code sample below demonstrates how you can use this method to create a Scheduler control.

``` cshtml @model IEnumerable

@(Html.DevExpress() .BootstrapScheduler("schedulerDataBinding") .Start(new DateTime(2018, 05, 21)) .Storage(storage => storage .Appointments(appointments => appointments .Mappings(map => map .AppointmentId(a => a.Id) .Subject(a => a.Text) .Start(a => a.StartDate) .End(a => a.EndDate)) ))) .Routes(routes => routes .MapRoute(r => r .Action("DataBinding") .Controller("Scheduler"))) .BindAppointments(Model))

See Also