MVCxSchedulerDayView.SetHorizontalAppointmentTemplateContent(Action<AppointmentTemplateContainer>) Method
Allows you to provide a template for rendering the horizontal appointment.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public void SetHorizontalAppointmentTemplateContent(
Action<AppointmentTemplateContainer> contentMethod
)
Parameters
Name | Type | Description |
---|---|---|
contentMethod | Action<AppointmentTemplateContainer> | A method to which a template content rendering is delegated. |
Remarks
@Html.DevExpress().Scheduler(
settings => {
settings.Name = "scheduler";
...
settings.Views.DayView.SetHorizontalAppointmentTemplateContent(c => {
Html.RenderPartial("TemplatesHorizontalAppointmentPartial", c.AppointmentViewInfo.Appointment);
});
...
}).Bind(Model.Appointments, Model.Resources).GetHtml()
Online Demo
See Also