<?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: Jqgrid Group Header Text displaying Sum</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-group-header-text-displaying-sum</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/help/jqgrid-group-header-text-displaying-sum/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rize on Jqgrid Group Header Text displaying Sum</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-group-header-text-displaying-sum#p30881</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-group-header-text-displaying-sum#p30881</guid>
        	        	<description><![CDATA[<p>You are a life saver ... this was driving me insane.</p>
<p>Works perfectly.</p>
<p>Â </p>
<p>Thanks again.</p>
<p>Ryan</p>
]]></description>
        	        	<pubDate>Wed, 23 Jul 2014 17:18:38 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Jqgrid Group Header Text displaying Sum</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-group-header-text-displaying-sum#p30877</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-group-header-text-displaying-sum#p30877</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>To fix the problem you will need to use summaryRound and/or summaryRoundType in the colModel definition.<br />
See <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:grouping#colmodel_options" target="_blank">here</a>.</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 23 Jul 2014 13:25:07 +0300</pubDate>
        </item>
        <item>
        	<title>rize on Jqgrid Group Header Text displaying Sum</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-group-header-text-displaying-sum#p30876</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-group-header-text-displaying-sum#p30876</guid>
        	        	<description><![CDATA[<blockquote>
<p><strong>Rekha said </strong><br />
Hi,</p>
<p> This is regarding Jqgrid Group Header Text displaying Sum in the group Text.</p>
<p> I want the sum of a particular group displayed in the group header. I found this approach on the <a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....qgrid.html</a> Â demo site and it works. This issue is that, when I am trying to sum a currency, the group text Â displays â€œ3117.1499999999996â€ Â The extra trailing decimals show up. But when I display on the group Summary, it displays fine as â€œ3117.15â€.</p>
<p> colModel: [ â€¦â€¦â€¦.</p>
<p> { name: 'Amount', sortable: true, formatter: 'currency', align: "right", sorttype: 'currency', decimalPlaces: '2', summaryType: 'sum', defaultValue: '0.00' }]</p>
<p> groupingView: {</p>
<p> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  groupField: ['Order'],</p>
<p> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  groupDataSorted: true,</p>
<p> Â Â Â  Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â groupText: ['&#60;b&#62; {0}Â  &#60;/b&#62;Â  Total Amount: {Amount}â€™],</p>
<p> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  groupColumnShow: [true],</p>
<p> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  groupSummary: [true],</p>
<p> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  groupCollapse: true,</p>
<p> Â Â Â Â Â Â Â Â Â Â  Â Â Â Â Â Â Â Â Â groupOrder: ['asc'],</p>
<p> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  showSummaryOnHide: false,</p>
<p> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  },</p>
<p> Please help.</p>
<p> Thank s &#38; Regards</p>
<p> Rekha</p>
</blockquote>
<p>Â </p>
<p>Hi,</p>
<p>IÂ also have this exact problem , it does the same with number formatting as well not just currency.Â </p>
<p>I have tried using a function to return the trimmed value but IÂ don't know how to pass the value {0} or {Amount} Â into the function.</p>
<p>"Â groupText: ['&#60;b&#62; {0}Â  &#60;/b&#62;Â  Total Amount: "+ formatAmount('{Amount}')], " Â  just passes Â in the string</p>
<p>Does anyone know theÂ fixÂ or work around.</p>
<p>I am desperate.</p>
<p>Â </p>
<p>Thanks</p>
<p>Ryan</p>
]]></description>
        	        	<pubDate>Wed, 23 Jul 2014 10:32:47 +0300</pubDate>
        </item>
        <item>
        	<title>Rekha on Jqgrid Group Header Text displaying Sum</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-group-header-text-displaying-sum#p29436</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-group-header-text-displaying-sum#p29436</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>This is regarding Jqgrid Group Header Text displaying Sum in the group Text.</p>
<p>I want the sum of a particular group displayed in the group header. I found this approach on the <a href="http://trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://trirand.com/blog/jqgrid" rel="nofollow">http://trirand.com/blog/jqgrid</a>.....qgrid.html</a> &#160;demo site and it works. This issue is that, when I am trying to sum a currency, the group text &#160;displays &#8220;3117.1499999999996&#8221; &#160;The extra trailing decimals show up. But when I display on the group Summary, it displays fine as &#8220;3117.15&#8221;.</p>
</p>
<p>colModel: [ &#8230;&#8230;&#8230;.</p>
<p>{ name: &#39;Amount&#39;, sortable: true, formatter: &#39;currency&#39;, align: "right", sorttype: &#39;currency&#39;, decimalPlaces: &#39;2&#39;, summaryType: &#39;sum&#39;, defaultValue: &#39;0.00&#39; }]</p>
<p>groupingView: {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupField: [&#39;Order&#39;],</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupDataSorted: true,</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;groupText: [&#39;&#60;b&#62; {0}&#160; &#60;/b&#62;&#160; Total Amount: {Amount}&#8217;],</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupColumnShow: [true],</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupSummary: [true],</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; groupCollapse: true,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;groupOrder: [&#39;asc&#39;],</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; showSummaryOnHide: false,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
</p>
<p>Please help.</p>
<p>Thank s &#38; Regards</p>
<p>Rekha</p>
]]></description>
        	        	<pubDate>Wed, 04 Sep 2013 00:51:37 +0300</pubDate>
        </item>
</channel>
</rss>