SchedulerViewBuilder.AppointmentTemplate(TemplateName) Method
Specifies the client-side appointmentTemplate.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public SchedulerViewBuilder AppointmentTemplate(
TemplateName name
)
Parameters
Name | Type | Description |
---|---|---|
name | TemplateName | A template name. |
Returns
Type | Description |
---|---|
SchedulerViewBuilder | A reference to this instance after the method is called. |
Remarks
This method applies an external template to an appointment. Refer to External Templates for more information and code examples.
@(Html.DevExtreme().Scheduler()
.Views(views => {
views.Add().AppointmentTemplate(new TemplateName("mySchedulerView_appointmentTemplate"));
})
)
@using(Html.DevExtreme().NamedTemplate("mySchedulerView_appointmentTemplate")) {
<div>
Template content
</div>
}
See Also