Skip to main content

DataGridColumnBuilder<T>.GroupCellTemplate(TemplateName) Method

Specifies the client-side groupCellTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DataGridColumnBuilder<T> GroupCellTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
DataGridColumnBuilder<T>

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().DataGrid()
    .Columns(columns => {
        columns.Add().GroupCellTemplate(new TemplateName("myDataGridColumn_groupCellTemplate"));
    })
)

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