BuilderFactoryExtensions.BootstrapScheduler(BuilderFactory, String) Method
Creates a Scheduler control with a specified name.
Namespace: DevExpress.AspNetCore
Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll
#Declaration
public static BootstrapSchedulerBuilder BootstrapScheduler(
this BuilderFactory builderFactory,
string name
)
#Parameters
Name | Type | Description |
---|---|---|
builder |
Builder |
A Builder |
name | String | A control name. |
#Returns
Type | Description |
---|---|
Bootstrap |
A builder for a Scheduler control. |
#Remarks
IMPORTANT
Bootstrap Controls for ASP.
The code sample below demonstrates how you can use this method to create a Scheduler control.
@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))
NOTE
See Online Demos: Refer to the https://demos.