Skip to main content

GridViewSettings.SetGroupFooterRowTemplateContent(Action<GridViewGroupFooterRowTemplateContainer>) Method

Allows you to provide a template to render a group footer row.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void SetGroupFooterRowTemplateContent(
    Action<GridViewGroupFooterRowTemplateContainer> contentMethod
)

Parameters

Name Type Description
contentMethod Action<GridViewGroupFooterRowTemplateContainer>

A string value specifying the template content.

Remarks

@Html.DevExpress().GridView(settings => {
    settings => {
        settings.Name = "gridView";
        ...
        settings.SetGroupFooterRowTemplateContent(context =>
        {
            ViewContext.Writer.Write("<span style=\"color:red\">TEST</span>");
        });
        ...
}).Bind(Model).GetHtml()

Online Demo

GridView - Templates

See Also