TreeListColumnBuilder<T>.HeaderCellTemplate(TemplateName) Method
Specifies the client-side headerCellTemplate.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public TreeListColumnBuilder<T> HeaderCellTemplate(
TemplateName name
)
Parameters
Name | Type | Description |
---|---|---|
name | TemplateName | A template name. |
Returns
Type | Description |
---|---|
TreeListColumnBuilder<T> | A reference to this instance after the method is called. |
Remarks
This method applies an external template to a header cell. Refer to External Templates for more information and code examples.
@(Html.DevExtreme().Gantt()
.Columns(columns => {
columns.Add().HeaderCellTemplate(new TemplateName("myTreeListColumn_headerCellTemplate"));
})
)
@using(Html.DevExtreme().NamedTemplate("myTreeListColumn_headerCellTemplate")) {
<div>
Template content
</div>
}
See Also