<?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: not exact grouping (case insensitive or grouping by intervals of values)</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/not-exact-grouping-case-insensitive-or-grouping-by-intervals-of-values</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/not-exact-grouping-case-insensitive-or-grouping-by-intervals-of-values/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on not exact grouping (case insensitive or grouping by intervals of values)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/not-exact-grouping-case-insensitive-or-grouping-by-intervals-of-values#p28722</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/not-exact-grouping-case-insensitive-or-grouping-by-intervals-of-values#p28722</guid>
        	        	<description><![CDATA[<p>Hello Tony</p>
<p><a href="https://github.com/tonytomov/jqGrid/pull/452" target="_blank">The pull request</a>&#160;contains very simple changes in grouping module of jqGrid (one line was modified and tree lines was added), but it implement more advanced version of grouping.</p>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/NotExactGrouping1.htm" target="_blank">The demo</a> demonstrate the results which look like</p>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/NotExactGrouping1.png"><img src="http://www.ok-soft-gmbh.com/jqGrid/NotExactGrouping1.png" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Wed, 24 Apr 2013 14:13:58 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on not exact grouping (case insensitive or grouping by intervals of values)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/not-exact-grouping-case-insensitive-or-grouping-by-intervals-of-values#p28707</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/not-exact-grouping-case-insensitive-or-grouping-by-intervals-of-values#p28707</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>I answerd just now on <a href="http://stackoverflow.com/q/16149731/315935" target="_blank">the following question</a> on the stackoverflow. The question was about case insensitive grouping. I remember before about close "not exact grouping" like grouping my year of by month and year instead of exact date values.</p>
<p>It seems to me that canging just one line of code allow to implement all the requirements. I suggest to change <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.5/js/grid.grouping.js#L109" target="_blank">the line</a>&#160;of code</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6209' value='Select Code' data-codeid='sfcode6209' /></p>
<div class='sfcode' id='sfcode6209'>if( typeof v !== &#34;object&#34; &#38;&#38; grp.lastvalues[i] !== v ) {</div>
<p>to the following</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5681' value='Select Code' data-codeid='sfcode5681' /></p>
<div class='sfcode' id='sfcode5681'>if (typeof v !== &#34;object&#34; &#38;&#38;<br />&#160; &#160; &#160; &#160; <strong>($.isFunction(grp.isInTheSameGroup) ?<br />&#160; &#160; &#160; &#160; &#160;!grp.isInTheSameGroup(grp.lastvalues[i], v) :</strong> grp.lastvalues[i] !== v<strong>)</strong>) {&#160;</div>
<p>after that one could define groupingView with additional callback function isInTheSameGroup for example like the following</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8829' value='Select Code' data-codeid='sfcode8829' /></p>
<div class='sfcode' id='sfcode8829'>grouping: true,<br />groupingView: {<br />&#160; &#160; ...<br />&#160; &#160; groupField: [&#34;name&#34;], // the column by which we group<br />&#160; &#160; <strong>isInTheSameGroup: function (x, y) {<br />&#160; &#160; &#160; &#160; return String(x).toLowerCase() === String(y).toLowerCase();<br />&#160; &#160; }</strong><br />}&#160;</div>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/NotExactGrouping.htm" target="_blank">The demo</a> demonstrates the results. It displays the results like below</p>
<p><a href="http://www.ok-soft-gmbh.com/jqGrid/NotExactGrouping.png"><img src="http://www.ok-soft-gmbh.com/jqGrid/NotExactGrouping.png" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>I don&#39;t tested grouping of multilevel, but I hope it should work too.</p>
<p>I think that implementation of the feature could be intresting for other users of jqGrid.</p>
<p>Bes regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Mon, 22 Apr 2013 20:30:39 +0300</pubDate>
        </item>
</channel>
</rss>