MVCxSchedulerDayView.SetDayOfWeekHeaderTemplateContent(Action<DayOfWeekHeaderTemplateContainer>) Method
Allows you to provide a template for rendering the header indicating the day of week.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
public void SetDayOfWeekHeaderTemplateContent(
Action<DayOfWeekHeaderTemplateContainer> contentMethod
)
Parameters
Name | Type | Description |
---|---|---|
contentMethod | Action<DevExpress.Web.ASPxScheduler.DayOfWeekHeaderTemplateContainer> | A method to which a template content rendering is delegated. |
Remarks
@Html.DevExpress().Scheduler(
settings => {
settings.Name = "scheduler";
...
settings.Views.DayView.SetDayOfWeekHeaderTemplateContent(c =>
{
ViewContext.Writer.Write("<span style=\"color:red\">TEST</span>");
});
...
}).Bind(Model.Appointments, Model.Resources).GetHtml()
Online Demo
See Also