<?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 3.8 Grouping on INT</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int</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/jqgrid-3-8-grouping-on-int/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on jqGrid 3.8 Grouping on INT</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20432</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20432</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. Fixed</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 23 Oct 2010 10:52:01 +0300</pubDate>
        </item>
        <item>
        	<title>kmanpro on jqGrid 3.8 Grouping on INT</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20206</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20206</guid>
        	        	<description><![CDATA[<p>I changed the groupingPrepare function to the following modifying lines 58 and 67 and it worked:</p>
<p>&#160;groupingPrepare : function (rData, items, gdata, record) {<br />&#160;&#160;this.each(function(){<br />&#160;&#160;&#160;// currently only one level<br />&#160;&#160;&#160;// Is this a good idea to do it so!!!!?????<br /><span style="color: #ff0000;">&#160;&#160;&#160;var itm = items[0] ? items[0].toString().split(&#39; &#39;).join(&#39;&#39;) : "";</span><br /><span style="color: #99cc00;">&#160;&#160;&#160;<span style="color: #339966;">//Was var itm = items[0] ? items[0].split(&#39; &#39;).join(&#39;&#39;) : "";</span></span></p>
<p>&#160;&#160;&#160;var grp = this.p.groupingView, $t= this;<br />&#160;&#160;&#160;if(gdata.hasOwnProperty(itm)) {<br />&#160;&#160;&#160;&#160;gdata[itm].push(rData);<br />&#160;&#160;&#160;} else {<br />&#160;&#160;&#160;&#160;gdata[itm] = [];<br />&#160;&#160;&#160;&#160;gdata[itm].push(rData);<br />&#160;&#160;&#160;&#160;grp.sortitems[0].push(itm);<br /><span style="color: #ff0000;">&#160;&#160;&#160;&#160;grp.sortnames[0].push($.trim(itm));</span></p>
<p><span style="color: #ff0000;">&#160;&#160;&#160; <span style="color: #339966;">//Was&#160;grp.sortnames[0].push($.trim(items[0]));</span></span><br />&#160;&#160;&#160;&#160;grp.summaryval[0][itm] = $.extend(true,{},grp.summary[0]);<br />&#160;&#160;&#160;}<br />&#160;&#160;&#160;if(grp.groupSummary[0]) {<br />&#160;&#160;&#160;&#160;$.each(grp.summaryval[0][itm],function(i,n) {<br />&#160;&#160;&#160;&#160;&#160;if ($.isFunction(this.st)) {<br />&#160;&#160;&#160;&#160;&#160;&#160;this.v = this.st.call($t, this.v, this.nm, record);<br />&#160;&#160;&#160;&#160;&#160;} else {<br />&#160;&#160;&#160;&#160;&#160;&#160;this.v = $($t).jqGrid(&#39;groupingCalculations.&#39;+this.st, this.v, this.nm, record);<br />&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;});<br />&#160;&#160;&#160;}<br />&#160;&#160;});<br />&#160;&#160;return gdata;<br />&#160;},</p></p>
]]></description>
        	        	<pubDate>Fri, 08 Oct 2010 18:26:12 +0300</pubDate>
        </item>
        <item>
        	<title>kmanpro on jqGrid 3.8 Grouping on INT</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20205</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20205</guid>
        	        	<description><![CDATA[<p>I was able to get past that error because I realized that the jqGrid.grouping.js was not in my autoloader.</p>
</p>
<p>I am still getting the same error on line 58 of the grid.grouping.js within the groupingPrepare function. It is trying to do a split and join function on a number and fails because the column I am grouping on is a Number...</p>
</p>
<p>I would imagine a simple fix of checking if it is a number or not or doing a toString() would do the trick...</p>
</p>
<p>Thanks,</p>
<p>Kaleb</p>
]]></description>
        	        	<pubDate>Fri, 08 Oct 2010 18:17:27 +0300</pubDate>
        </item>
        <item>
        	<title>kmanpro on jqGrid 3.8 Grouping on INT</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20175</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20175</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>Thanks. I have made some changes in this direction.</p>
<p>You can get the code from GitHub and test it.</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Thanks but now I am getting this error thrown :</p>
<p>"jqGrid - No such method: groupingSetup"</p>
]]></description>
        	        	<pubDate>Wed, 06 Oct 2010 17:25:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jqGrid 3.8 Grouping on INT</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20166</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20166</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks. I have made some changes in this direction.</p>
<p>You can get the code from GitHub and test it.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 06 Oct 2010 08:25:34 +0300</pubDate>
        </item>
        <item>
        	<title>kmanpro on jqGrid 3.8 Grouping on INT</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20154</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/jqgrid-3-8-grouping-on-int#p20154</guid>
        	        	<description><![CDATA[<p>I noticed that when I try to group on a column where the values are integer&#39;s I get an error from jqGrid. It looks like it is trying to perform string functions on an integer that is causing the problem...</p>
</p>
<p>As a work around I can loop through all my objects before making the jqGrid and convert them to string and it works.</p>
</p>
<p>Also, Can the grouping summary be on the same row as the grouping row? I find it to be better to only have one row with the details instead of two.</p>
</p>
<p>Any Thoughts?</p>
]]></description>
        	        	<pubDate>Tue, 05 Oct 2010 21:09:28 +0300</pubDate>
        </item>
</channel>
</rss>