Skip to main content

MVCxSchedulerMonthView.SetDateHeaderTemplateContent(Action<DateHeaderTemplateContainer>) Method

Allows you to provide a template for rendering the date header.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void SetDateHeaderTemplateContent(
    Action<DateHeaderTemplateContainer> contentMethod
)

Parameters

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

A method to which a template content rendering is delegated.

Remarks

@Html.DevExpress().Scheduler(
    settings => {
        settings.Name = "scheduler";
        ...
        settings.Views.MonthView.SetDateHeaderTemplateContent(c =>
        {
            ViewContext.Writer.Write("<span style=\"color:red\">TEST</span>");
        });
        ...
}).Bind(Model.Appointments, Model.Resources).GetHtml()

Online Demo

Scheduler - Templates

See Also