Skip to main content

MVCxSchedulerDayView.SetAllDayAreaTemplateMethod(Action<AllDayAreaTemplateContainer>) Method

Allows you to provide a template for rendering the all-day area.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void SetAllDayAreaTemplateMethod(
    Action<AllDayAreaTemplateContainer> contentMethod
)

Parameters

Name Type Description
contentMethod Action<DevExpress.Web.ASPxScheduler.AllDayAreaTemplateContainer>

A method to which a template content rendering is delegated.

Remarks

@Html.DevExpress().Scheduler(
    settings => {
        settings.Name = "scheduler";
        ...
        settings.Views.DayView.SetAllDayAreaTemplateContent(c =>
        {
            ViewContext.Writer.Write("<div><label>" + "custom content" + "</label></div>");
        });
        ...
}).Bind(Model.Appointments, Model.Resources).GetHtml()

Online Demo

Scheduler - Templates

See Also