Skip to main content
All docs
V25.2
  • ID
    Max
    Min

    SchedulerBuilder<T>.DateCellTemplate(TemplateName) Method

    Specifies the client-side dateCellTemplate.

    Namespace: DevExtreme.AspNet.Mvc.Builders

    Assembly: DevExtreme.AspNet.Core.dll

    Declaration

    public SchedulerBuilder<T> DateCellTemplate(
        TemplateName name
    )

    Parameters

    Name Type Description
    name TemplateName

    A template name.

    Returns

    Type Description
    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.

    @(Html.DevExtreme().Scheduler()
        .DateCellTemplate(new TemplateName("myScheduler_dateCellTemplate"))
    )
    
    @using(Html.DevExtreme().NamedTemplate("myScheduler_dateCellTemplate")) {
        <div>
            Template content
        </div>
    }
    
    See Also