I am attempting to reduce the amount of cell padding in my multi-level grouped grid (2 levels w/ subtotals and totals).
I have successfully reduced the top and botton cell padding on the GridHeaderItem, GridGroupHeaderItem, and GridDataItem.
However, for the life of me I cannot figure out how to change the cell padding in the GridGroupFooterItem.
The same mechanism I tried for the other items hasn't worked.
protected void RadGrid_Summary_ColumnCreated(object sender, GridColumnCreatedEventArgs e) { if (e.Column is GridGroupSplitterColumn c) { c.HeaderStyle.Width = Unit.Pixel(10); c.HeaderStyle.Font.Size = FontUnit.Point(1); c.FooterStyle.Width = Unit.Pixel(10); c.FooterStyle.Font.Size = FontUnit.Point(1); c.ItemStyle.Width = Unit.Pixel(10); c.ItemStyle.Font.Size = FontUnit.Point(1); c.Resizable = false; } } protected void RadGrid_Summary_ItemCreated(object sender, GridItemEventArgs e) { if (e.Item is GridGroupHeaderItem headerItem) { headerItem.CssClass = "GridMinClass"; if (headerItem.Cells.Count > 1 && headerItem.Cells[1].Controls.Count > 0 && headerItem.Cells[1].Controls[0] is Button headerButton1) { headerButton1.Visible = false; headerButton1.Height = Unit.Pixel(0); } if (headerItem.Cells.Count > 0 && headerItem.Cells[0].Controls.Count > 0 && headerItem.Cells[0].Controls[0] is Button headerButton2) { headerButton2.Visible = false; headerButton2.Height = Unit.Pixel(0); } } if (e.Item is GridGroupFooterItem footerItem) { footerItem.CssClass = "GridMinClass"; } if (e.Item is GridDataItem dataItem) { dataItem.CssClass = "GridMinClass"; } } gridmin.css:.GridMinClass { padding: 0; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0;}