Skip to main content
ID

DataGridBuilder<T>.RowTemplate(TemplateName) Method

OBSOLETE

This Method is obsolete now.

Specifies the client-side rowTemplate.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

[Obsolete("")]
public DataGridBuilder<T> RowTemplate(
    TemplateName name
)

Parameters

Name Type Description
name TemplateName

A template name.

Returns

Type Description
DataGridBuilder<T>

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().DataGrid()
    .RowTemplate(new TemplateName("myDataGrid_rowTemplate"))
)

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