<?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: Grouping summaryType</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/grouping-summarytype</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/grouping-summarytype/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>waiting on Grouping summaryType</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/grouping-summarytype#p20883</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/grouping-summarytype#p20883</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I want to use &#39;avg&#39; to calc the project&#39;s avg progress, and use this code</p>
<blockquote>
<p>{name: &#39;progress&#39;, index:&#39;progress&#39;, width: 70, formatter:&#39;integer&#39;, summaryType: &#39;avg&#39;, summaryTpl: &#39;&#60;strong&#62;avg: {0}&#60;/strong&#62;&#39; },</p>
</blockquote>
<p>but&#160; the {0} result has Decimal in some condition. summaryType&#39;s func only has 3 param (value, name, record), i can&#39;t define the result&#39;s style. So i thought to use custom-func, and then found i can&#39;t get the total number from one grouping ( grlen).</p>
<p>the src code say:</p>
<blockquote>
<p>&#160;&#160; &#160;&#160;&#160;&#160; "avg" : function(v, field, rc) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; // <strong>the same as sum, but at end we divide it</strong><br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return parseFloat(v&#124;&#124;0) + parseFloat((rc[field]&#124;&#124;0));<br />&#160;&#160; &#160;&#160;&#160; &#160;}</p>
</blockquote>
<p>ehm...</p>
<p>I wonder the feature:&#160; user can difine formatter for summaryType , same as col-formatter</p>
<p>I thought maybe it&#39;s better to invoke summaryType-func one by one on Grouping dataset , and pass through the grouping info (eg: the number rows of this group), not on record row.&#160; So user can defined custom-func for summaryType easyly.</p>
</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Thu, 18 Nov 2010 09:47:13 +0200</pubDate>
        </item>
</channel>
</rss>