MVCxSchedulerDayView.SetHorizontalSameDayAppointmentTemplateContent(Action<AppointmentTemplateContainer>) Method
In This Article
Allows you to provide a template for rendering the horizontal appointment that fits in one day.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public void SetHorizontalSameDayAppointmentTemplateContent(
Action<AppointmentTemplateContainer> contentMethod
)
#Parameters
Name | Type | Description |
---|---|---|
content |
Action<Appointment |
A method to which a template content rendering is delegated. |
#Remarks
@Html.DevExpress().Scheduler(
settings => {
settings.Name = "scheduler";
...
settings.Views.DayView.SetHorizontalSameDayAppointmentTemplateContent(c =>
{
ViewContext.Writer.Write("<div><label>" + "custom content" + "</label></div>");
});
...
}).Bind(Model.Appointments, Model.Resources).GetHtml()
#Online Demo
See Also