Back to Devexpress

SchedulerBuilder<T>.TimeCellTemplate(TemplateName) Method

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

latest1.6 KB
Original Source

SchedulerBuilder<T>.TimeCellTemplate(TemplateName) Method

Specifies the client-side timeCellTemplate.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public SchedulerBuilder<T> TimeCellTemplate(
    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 time cell. Refer to External Templates for more information and code examples.

cshtml
@(Html.DevExtreme().Scheduler()
    .TimeCellTemplate(new TemplateName("myScheduler_timeCellTemplate"))
)

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

See Also

SchedulerBuilder<T> Class

SchedulerBuilder<T> Members

DevExtreme.AspNet.Mvc.Builders Namespace