This question is locked. New answers and comments are not allowed.
For some reason if I hide the column that I'm using for grouping the GroupHeaderTemplate of that column gets ignored. Is there anyway to get it to be used and the column to be still hidden?
@{ Html.Telerik().Grid(Model.Items) .Name("gridSummary") .Columns(columns => { columns.Bound(o => o.Type) .Width(175) .FooterTemplate(@<text>Project Total</text>) .GroupFooterTemplate(@<text>Subtotal</text>); columns.Bound(o => o.TopLevel) .HeaderHtmlAttributes(new { style = "text-align:center;" }) .FooterHtmlAttributes(new { style = "text-align:center;" }) .HtmlAttributes(new { style = "text-align:center;" }) .Aggregate(aggreages => aggreages.Sum()) .Format("{0:n0}") .FooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>) .GroupFooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>); columns.Bound(o => o.Attached) .HeaderHtmlAttributes(new { style = "text-align:center;" }) .FooterHtmlAttributes(new { style = "text-align:center;" }) .HtmlAttributes(new { style = "text-align:center;" }) .Aggregate(aggreages => aggreages.Sum()) .Format("{0:n0}") .FooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>) .GroupFooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>); columns.Bound(o => o.Embedded) .HeaderHtmlAttributes(new { style = "text-align:center;" }) .FooterHtmlAttributes(new { style = "text-align:center;" }) .HtmlAttributes(new { style = "text-align:center;" }) .Aggregate(aggreages => aggreages.Sum()) .Format("{0:n0}") .FooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>) .GroupFooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>); columns.Bound(o => o.Count) .HeaderHtmlAttributes(new { style = "text-align:center;" }) .FooterHtmlAttributes(new { style = "text-align:center;" }) .HtmlAttributes(new { style = "text-align:center;" }) .Aggregate(aggreages => aggreages.Sum()) .Format("{0:n0}") .FooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>) .GroupFooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>); columns.Bound(o => o.Days) .HeaderHtmlAttributes(new { style = "text-align:center;" }) .FooterHtmlAttributes(new { style = "text-align:center;" }) .HtmlAttributes(new { style = "text-align:center;" }) .Aggregate(aggreages => aggreages.Sum()) .Format("{0:n0}") .FooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>) .GroupFooterTemplate(@<text>@item.Sum.Format("{0:n0}")</text>); columns.Bound(o => o.Cost) .HeaderHtmlAttributes(new { style = "text-align:right;" }) .FooterHtmlAttributes(new { style = "text-align:right;" }) .HtmlAttributes(new { style = "text-align:right;" }) .Aggregate(aggreages => aggreages.Sum()) .Format("{0:c}") .FooterTemplate(@<text>@item.Sum.Format("{0:c}")</text>) .GroupFooterTemplate(@<text>@item.Sum.Format("{0:c}")</text>); columns.Bound(o => o.Group) //.Aggregate(aggregates => aggregates.Sum()) .GroupHeaderTemplate(@<text>@item.Key</text>) //.GroupFooterTemplate(@<text>Subtotal</text>) .Visible(false); }) .Groupable(settings => settings.Groups(groups => { groups.Add(o => o.Group); }).Visible(false)) .Scrollable(scrolling => scrolling.Height(450).Enabled(true)) .Sortable(sorting => sorting.Enabled(false)) .Pageable(paging => paging.Enabled(false)) .Footer(true) .Render();}