<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: group summary in the header</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Ram on group summary in the header</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p29394</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p29394</guid>
        	        	<description><![CDATA[</p>
<p>I could solve this with a slight hack...</p>
</p>
<p>In Loadcomplete handler, we need to extract contents of the summary footer and add them to the group header row.</p>
</p>
<p>$("#" + treeId + " tr.jqfoot").each(function () {</p>
</p>
<p>var summaryrow = $(this);</p>
<p>var level = summaryrow.attr(&#39;jqfootlevel&#39;);</p>
<p>var groupSelector = &#39;tr.jqgroup.&#39; + treeId + &#39;ghead_&#39; + level + &#39;:first&#39;;</p>
</p>
<p>// get matching previous group row for level. &#160;prev doesn&#39;t work so using prevAll. //http://stackoverflow.com/questions/5778092/jquery-selector-for-previous-instance-of-a-class<br />var grouprow = summaryrow.prevAll(groupSelector);&#160;</p>
<p>// grouprow by default stretches to entire table.</p>
<p>// reduce that to occupy till first column. as we will add other columns from footer.</p>
<p>grouprow.children(&#39;td&#39;).attr(&#39;colSpan&#39;, 1);&#160;</p>
<p>&#160;// get other columns</p>
<p>var childrenSkipFirst = summaryrow.children(&#39;:nth-child(n+&#39; + (2) + &#39;)&#39;); // 1 based index &#160; &#160; &#160; &#160; &#160;</p>
</p>
<p>summaryrow.children().remove(); // remove the non-result columns left over, this will hide the summary row.<br />grouprow.append(childrenSkipFirst);</p>
<p>&#160;</p>
</p>
<p>}</p></p>
]]></description>
        	        	<pubDate>Mon, 26 Aug 2013 09:20:07 +0300</pubDate>
        </item>
        <item>
        	<title>Ram on group summary in the header</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p29363</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p29363</guid>
        	        	<description><![CDATA[<p>Link in my previous post seems broken. &#160;Sharing again.</p>
</p>
<p>/blog/?page_id=393/help/jqgrid-how-do-i-sum-the-values-in-columns-and-use-result/</p>
</p>
<p><a href="/blog/?page_id=393/help/jqgrid-how-do-i-sum-the-values-in-columns-and-use-result/" target="_blank">page_id=393/help/jqgrid-how-do-i-sum-the-values-in-columns-and-use-result/</a></p>
]]></description>
        	        	<pubDate>Wed, 21 Aug 2013 09:11:48 +0300</pubDate>
        </item>
        <item>
        	<title>Ram on group summary in the header</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p29362</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p29362</guid>
        	        	<description><![CDATA[<p>Searching a bit on the forum found /blog/?page_id=393/help/jqgrid-how-do-i-sum-the-values-in-columns-and-use-result/. &#160;Though not related, thought found something interesting. &#160;Basically an opportunity to run some code after loading completes.</p>
</p>
<p>Can this be used to copy rows/info from summary footer onto the group header row and then discard/hide summary footer rows?</p>
</p>
<p>Regards,</p>
<p>Ram</p>
]]></description>
        	        	<pubDate>Wed, 21 Aug 2013 09:10:36 +0300</pubDate>
        </item>
        <item>
        	<title>Ram on group summary in the header</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p29361</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p29361</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>&#160; I have a similar requirement. &#160;Is there some way to accomplish this?</p>
</p>
<p>1. &#160;Want the summary info appearing in the group header row instead of footer. &#160;By group header row, I mean the rows with the + sign.</p>
<p>2. &#160;Using CustomFormatter and options.rowId containing "ghead_" we can decide what needs to be displayed in the group header row. &#160;But, this gets called before the Summary Function (summaryType: customSummary). &#160;So, the summary info would not be available at the time of rendering the header row.</p>
</p>
<p>How to extract the summary info constructed through a cusotm summary function and display on the group header row?</p>
</p>
<p>I&#39;m using jqgrid 4.5.2.</p>
<p>Regards,</p>
<p>Ram</p>
]]></description>
        	        	<pubDate>Wed, 21 Aug 2013 08:57:36 +0300</pubDate>
        </item>
        <item>
        	<title>paul78 on group summary in the header</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p21255</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/group-summary-in-the-header#p21255</guid>
        	        	<description><![CDATA[<p>Hi guys,</p>
<p>first of all I want to say that you&#39;ve done a great job with this application! I really like it.</p>
</p>
<p>I use grouping a lot and want to show the summary footer along with it. But this will give me 2 rows when all rows collapsed. It would be very nice if the header could provide the summary information so that a single row would be enough.</p>
</p>
<p>Cheers!</p>
<p>Paul</p>
]]></description>
        	        	<pubDate>Sun, 12 Dec 2010 13:44:59 +0200</pubDate>
        </item>
</channel>
</rss>