SchedulerBuilder.TimeCellTemplate(TemplateName) Method
Specifies the client-side timeCellTemplate.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public SchedulerBuilder TimeCellTemplate(
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 time cell. Refer to External Templates for more information and code examples.
@(Html.DevExtreme().Scheduler()
.TimeCellTemplate(new TemplateName("myScheduler_timeCellTemplate"))
)
@using(Html.DevExtreme().NamedTemplate("myScheduler_timeCellTemplate")) {
<div>
Template content
</div>
}
See Also