﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Grouptotals on group header row instead of footer row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Grouptotals-on-group-header-row-instead-of-footer-row/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Grouptotals on group header row instead of footer row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Grouptotals-on-group-header-row-instead-of-footer-row/</link><pubDate>Wed, 02 Jun 2010 16:08:06 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I’d like to add Handy’s information regarding this topic.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I assume that the group totals that are shown in the footer line is the ‘&lt;em&gt;FooterText&lt;/em&gt;’ that displays the result of ‘&lt;em&gt;AggregateFunction&lt;/em&gt;’ as shown in GroupFooterTotal.aspx (please click &lt;a href="http://live.intersoftpt.com/Default.aspx?url=cs/WebGrid/GroupFooterTotal.aspx" target="_blank"&gt;here&lt;/a&gt; to see the live sample version of GroupFooterTotal.aspx).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;If you wish to have the result of ‘&lt;em&gt;AggregateFunction&lt;/em&gt;’ displayed in &lt;em&gt;GroupHeader&lt;/em&gt; row (have only one line showing the item name and the totals for that item in the corresponding column), then Handy’s approach is the best solution to implement this kind of scenario.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;There is another feature of WebGrid that might meet your scenario. it is called ‘&lt;em&gt;GroupRowInfoFormat&lt;/em&gt;’.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Although built-in &lt;em&gt;Aggregate Functions&lt;/em&gt; are already available in &lt;em&gt;WebGridColumn&lt;/em&gt;, you need to enable &lt;em&gt;GroupTotal&lt;/em&gt; feature to display the aggregated values. When enabled, a special total row will appear after the group header to display each calculated values of aggregate functions defined in specific WebGridColumn.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;With the ‘&lt;em&gt;GroupRowInfoFormat&lt;/em&gt;’ feature to display basic aggregate functions in group header, you can display the calculated values without has to enable the GroupTotal feature. This feature is useful when you only need to display a small number of calculated values and therefore reducing unnecessary clutter in the Grid’s user interface.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The format string for new aggregate functions that you can apply in group header:&lt;/span&gt;&lt;/p&gt;
&lt;ul style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;sum(&lt;em&gt;Column Name&lt;/em&gt;)&lt;/li&gt;&lt;li&gt;avg(&lt;em&gt;Column Name&lt;/em&gt;)&lt;/li&gt;&lt;li&gt;min(&lt;em&gt;Column Name&lt;/em&gt;)&lt;/li&gt;&lt;li&gt;max(&lt;em&gt;Column Name&lt;/em&gt;)&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please check the ‘DisplayAggregateinGroupHeader.aspx’ sample (click &lt;a href="http://live.intersoftpt.com/Default.aspx?url=cs/WebGrid/DisplayAggregateinGroupHeader.aspx" target="_blank"&gt;here&lt;/a&gt; to see the live sample version of DisplayAggregateinGroupHeader.aspx) for more detail about the implementation of the feature.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Grouptotals on group header row instead of footer row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Grouptotals-on-group-header-row-instead-of-footer-row/</link><pubDate>Wed, 02 Jun 2010 02:18:33 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Currently, we don't have that feature. You will need to get the element of group header and write manually the footer in there. I attached a simple sample to show you how to do it. &lt;br /&gt;&lt;br /&gt;FYI, the elements could be different with yours because of your different WebGrid structure.&lt;br /&gt;So, It depends on your WebGrid structure.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Grouptotals on group header row instead of footer row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Grouptotals-on-group-header-row-instead-of-footer-row/</link><pubDate>Tue, 01 Jun 2010 21:57:06 GMT</pubDate><dc:creator>msek</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We are looking into buying and using WebGrid control and would like to know the following:&lt;/p&gt;
&lt;p&gt;When grouping the group totals are shown on a footer line, when collapsed you always see 2 lines.&lt;/p&gt;
&lt;p&gt;One line with name of grouped item  and second line with totals.&lt;/p&gt;
&lt;p&gt;Is it possible to have only one line showing the item name and the totals for that item in the corresponding columns?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;M Sekha&lt;/p&gt;</description></item></channel></rss>