Skip to main content
All docs
V23.2

GanttColumnBuilder<T>.HeaderCellTemplate(JS) Method

Specifies a custom template for column headers. Mirrors the client-side headerCellTemplate object.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public GanttColumnBuilder<T> HeaderCellTemplate(
    JS value
)

Parameters

Name Type Description
value JS

A JavaScript expression that specifies the option value.

Returns

Type Description
GanttColumnBuilder<T>

A reference to this instance after the method is called.

Remarks

This method allows you to define a cell template using a JavaScript function. You can access headerCellTemplate‘s parameters from this function. Refer to JavaScript Functions as Templates for more information.

@(Html.DevExtreme().Gantt()
    .Columns(columns => {
        columns.Add().HeaderCellTemplate(new JS("myGanttColumn_headerCellTemplate"));
    })
)

<script>
    function myGanttColumn_headerCellTemplate() {
        // Template rendering logic
    }
</script>
See Also