<?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 data will be displayed unformatted</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted</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-data-will-be-displayed-unformatted/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>flack on grouping data will be displayed unformatted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p20560</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p20560</guid>
        	        	<description><![CDATA[<p>I don&#39;t know if this is directly related to the problem, but my strategy for formatting stuff in jqgrid is usually to render it directly in PHP the way I want it and to add an "index" column with the unformatted value that is used for sorting afterwards. F.x.:</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //This holds e.g. an HTML link or something<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;project&#39;, index: &#39;index_project&#39;},</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //This holds the unformatted cell value which is used for sorting<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;index_project&#39;,index:&#39;index_project&#39;, hidden: true},</p>
</p>
<p>To make this work for grouping headers, a small patch would be needed to grid.base.js:</p>
</p>
<p><a rel="nofollow" href="http://github.com/flack/jqGrid/commit/fe07b68c0f9664bb338e57ccbcb85727eb7a7bc2" target="_blank"></a><a href="http://github.com/flack/jqGrid" rel="nofollow" target="_blank">http://github.com/flack/jqGrid</a>.....27eb7a7bc2</p>
</p>
<p>But I was going to propose this for inclusion into mainline anyways <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_smile.gif" alt=":-)" /></p>
]]></description>
        	        	<pubDate>Fri, 29 Oct 2010 13:26:55 +0300</pubDate>
        </item>
        <item>
        	<title>idrozd on grouping data will be displayed unformatted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p20557</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p20557</guid>
        	        	<description><![CDATA[<p><strong>2 OlegK:&#160;</strong></p>
<p>Hi. Any workaround with group header formatting?</p>
<p>3.8.1 still has this bug.</p>
]]></description>
        	        	<pubDate>Fri, 29 Oct 2010 05:21:55 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on grouping data will be displayed unformatted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p19981</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p19981</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>I mean don&#39;t use autodetect of column type. I am not sure that it is possible in the general case.</p>
<p>I suppose that the usage of <strong>sorttype</strong> for sorting of grouping column is the best way. It is mostly close to the rest concept of local sorting in jqGrid and make full power of sorting working without writing a lot of additional code. More sofisticated types of sorting like the usage of <strong>index</strong> defined as function of <strong>sorttype</strong> defined as function will be also automatic work.</p>
<p>The formatting of group header row (the data from the <strong>groupText</strong>) seems me good to make in the same way as the formating of data in the corresponding column. Then one can really use the option <strong>groupColumnShow : [false]</strong> without missing a information. More sofisticated type of formating like will be also automatic work.</p>
<p>Thanks and best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Fri, 24 Sep 2010 11:28:16 +0300</pubDate>
        </item>
        <item>
        	<title>tony on grouping data will be displayed unformatted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p19976</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p19976</guid>
        	        	<description><![CDATA[<p>Hello Oleg,</p>
<p>Thanks for both bugs.</p>
<p>I will correct these. The formatting will be ok, the problem is with sorting where we have two possible solutions</p>
<p>1. The develloper should point the type of the column - i.e number/date/string/ .... this will be the eystest way (I think that in this case the sorttype parameter in colModel should be used.)</p>
<p>2. Autodetect column type which is the most harder way. I prefer the first one and maybe I will implement it.</p>
</p>
<p>As for the groupDataSorted - this is true - all the things go to the server.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 24 Sep 2010 09:42:43 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on grouping data will be displayed unformatted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p19943</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grouping-data-will-be-displayed-unformatted#p19943</guid>
        	        	<description><![CDATA[<p>Hello Tony!</p>
<p>I can find any way to have correct sorting of grouping data. I need to group data which has &#39;select&#39; format. After the grouping the data from the <strong>groupText</strong> (I mean group header row) will be displayed unformatted. You can see the problem on <a href="http://www.ok-soft-gmbh.com/jqGrid/DisplayLog.htm" target="_blank">the demo</a>. I group here by the column &#39;subSource&#39;. One can see that the data are displayed unformatted also <a href="http://www.ok-soft-gmbh.com/jqGrid/DisplayLog1.htm" target="_blank">here</a>. It is the same grid, but with formatted date, grouped also by &#39;datetime&#39;. So we have two problems 1) the data from the group header row will be displayed unformated 2) the sorting of data grouping column will be done as sorting of this unformated text information.</p>
<p>By the way <strong>index</strong> defined as function of <strong>sorttype</strong> defined as function on the grouping column will be not called. They will be used only if one click on the header of the corresponding column, but not during grouping sorting.</p>
<p>One more problem. If one define <strong>groupDataSorted: true</strong> parameter of <strong>groupingView</strong> then data will be displayed <strong><span style="text-decoration: underline;">at the first</span></strong> time unsorted (because it is the feature for remote data), but after the click on the header of a column the grouping will be sorted as a strings. So the setting can not be used for the local data &#8211; only for remote data where the sorting do the server.</p>
<p>In the current grouping <a href="/jqgridwiki/doku.php?id=wiki:grouping#limitations" target="_blank">limitation</a> I could not find anything about usage only string or number types.</p>
<p>Could you modify the code th display the data in <strong>groupText</strong> formated in the same way as the data in the grid?</p>
<p>Thank you<br />Oleg</p>
]]></description>
        	        	<pubDate>Wed, 22 Sep 2010 22:52:01 +0300</pubDate>
        </item>
</channel>
</rss>