ID
Max
Min

SchedulerBuilder.ResourceCellTemplate(TemplateName) Method

Specifies the client-side resourceCellTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public SchedulerBuilder ResourceCellTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
SchedulerBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().Scheduler()
    .ResourceCellTemplate(new TemplateName("myScheduler_resourceCellTemplate"))
)

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