This is a migrated thread and some comments may be shown as answers.

Group Footers and Grouping

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 19 Nov 2008, 10:46 PM
Hi,

I am having a few problems footers and group footers. I am developing using RadGrid Q3 2008, under Vista/Dot Net 3.5.and various browsers.

  1. First Issue - There are settings (per column) for Header/Item/Footer Style, but not for Group Footer. Some, but not all, style settings in footer style are reflected in the Group Footer. So for eaxample, the horizontal alignment is applied to the table footer and the group footer, but the Footer Font Style (bold=True) does not appear to affect the Group Footer.

    I would guess that for maximum flexibility, having a complete set of Group Footer Style settings independent of the Footer Style woudl be best.
  2. Using a grid sized 100% x 100%, with both footer and group footer enabled, Sometimes the grid is too wide for the browser window (and a horizontal scroll bar appears), the grid footer appears below the scroll bar - which just feels a little "not right".

    More to the point, the footer columns are not aligned with the rest of the grid The footer seems to be squeezed to fit the browser window, but the grid stretches out to the right. Interestingly as soon as I "group by" something, it all comes together properly. Ungrouping and the footer goes wrong again.
  3. When grid rows do not fill the available height, the grid footer remains fixed right at the bottom of the available space - with a big gap - maybe a touch fussy, but it would be nicer if the footer moved up under the last row of data in this case - or perhaps what I mean is that a footer arrangement which behaved more like the grid footer would be a nice alternative - the last row comprises the footer with grand totals, and it scrolls with the rest of the grid. There are further odd artefacts, using the default skin, and with a grid that is shorter and narrower than the available space, the unused space (belwo and to the right) is coloured grey, but the grid footer extends the full width of the space in white.
  4. Group footers and collapsed groups - it would be really helpful to be able change a setting so that the group footer does not disappear when the group is collapsed. That way the user sees 2 rows, the Group title, and underneath, the totals in the group footer - with no detail in-between. The alternative might be that the group footer and header are merged into one row when the group is collapsed - though this may give some problems when the group title stretches across several columns which have totals.

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 24 Nov 2008, 01:47 PM
Hello Andrew,

Indeed you are right and it might be a good idea to be able to set the GroupFooter style declaratively. For now you can use the ItemCreated event handler of the Grid to set the font of the GroupFooterItem like this:

protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    if (e.Item is GridGroupFooterItem) 
    { 
        e.Item.Font.Bold = true
    } 

As to the other two problems, can you reproduce them in this example? If you provide more information about your scenario we will be able to understand it better and advise you accordingly. You may even consider opening a support ticket and attaching to it a runnable sample which illustrates the problems you experience.

On your last suggestion, we do not support such a scenario currently. We will investigate further if such an improvement is possible.

Sincerely yours,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or