<?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 avg--Bug still exists?</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/grouping-avg-bug-still-exists</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/bugs/grouping-avg-bug-still-exists/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Grouping avg--Bug still exists?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grouping-avg-bug-still-exists#p27793</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grouping-avg-bug-still-exists#p27793</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Why do you think if this is a bug?</p>
<p>Could you please send us a test case.</p>
<p>The final calculation is<a href="https://github.com/tonytomov/jqGrid/blob/master/js/grid.grouping.js#L293" target="_blank"> done here</a></p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 27 Nov 2012 15:52:54 +0200</pubDate>
        </item>
        <item>
        	<title>xforfun on Grouping avg--Bug still exists?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grouping-avg-bug-still-exists#p27790</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grouping-avg-bug-still-exists#p27790</guid>
        	        	<description><![CDATA[<p>Hi there!</p>
<p>Is used version 4.4.0 of the jqGrid and encountered the avg-bug. The grid always calculates the sum and not the average. I updated to version 4.4.1 and the grid is still calculating the sum and not the average. All other summaryTypes (min, max, count, sum) are working fine!</p>
<p>I had a look at the sourcecode:</p>
<blockquote>
<pre>				avg:&#160;function()&#160;{
					//&#160;the&#160;same&#160;as&#160;sum,&#160;but&#160;at&#160;end&#160;we&#160;divide&#160;it
					//&#160;so&#160;use&#160;sum&#160;instead&#160;of&#160;duplicating&#160;the&#160;code&#160;(?)
					return&#160;funcs.sum();
				}</pre>
</blockquote>
<p>Where is the division done? I can&#180;t find it.</p>
<p>That is my column definition:</p>
<blockquote>
<pre>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{&#160;align:&#160;&#39;right&#39;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;hidden:&#160;false,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;title:&#160;true,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;label:&#160;(&#39;(%)&#39;),
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;name:&#160;&#39;MyCol&#39;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sortable:&#160;true,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;sorttype:&#160;&#39;number&#39;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;summaryType:&#160;&#39;avg&#39;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;formatter:&#160;&#39;number&#39;,
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;deselectAfterSort:&#160;false
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;},</pre>
</blockquote>
<p>Best regards, xforfun</p>
]]></description>
        	        	<pubDate>Tue, 27 Nov 2012 12:44:30 +0200</pubDate>
        </item>
</channel>
</rss>