Back to Devexpress

SchedulerBuilder<T>.DateCellTemplate(TemplateName) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-schedulerbuilder-1-dot-datecelltemplate-x28-devextreme-dot-aspnet-dot-mvc-dot-templatename-x29.md

latest1.6 KB
Original Source

SchedulerBuilder<T>.DateCellTemplate(TemplateName) Method

Specifies the client-side dateCellTemplate.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public SchedulerBuilder<T> DateCellTemplate(
    TemplateName name
)

Parameters

NameTypeDescription
nameTemplateName

A template name.

|

Returns

TypeDescription
SchedulerBuilder<T>

A reference to this instance after the method is called.

|

Remarks

This method applies an external template to a date cell. Refer to External Templates for more information and code examples.

cshtml
@(Html.DevExtreme().Scheduler()
    .DateCellTemplate(new TemplateName("myScheduler_dateCellTemplate"))
)

@using(Html.DevExtreme().NamedTemplate("myScheduler_dateCellTemplate")) {
    <div>
        Template content
    </div>
}

See Also

SchedulerBuilder<T> Class

SchedulerBuilder<T> Members

DevExtreme.AspNet.Mvc.Builders Namespace