<?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: Treegrid date sorting</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-date-sorting</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/treegrid-date-sorting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Marcel Karras on Treegrid date sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-date-sorting#p14819</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/treegrid-date-sorting#p14819</guid>
        	        	<description><![CDATA[<p>Ah,...</p>
<p>datefmt: &#39;d.m.Y&#39;</p>
<p>... did the job. 🙂 Thanks so far.</p>
]]></description>
        	        	<pubDate>Mon, 15 Feb 2010 16:52:05 +0200</pubDate>
        </item>
        <item>
        	<title>Marcel Karras on Treegrid date sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-date-sorting#p14817</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/treegrid-date-sorting#p14817</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
</p>
<p>thanks for your comment on that. I did like you told me but it doesn&#39;t work. These are the treegrid options I use:</p>
</p>
<p>({</p>
<p>&#160;&#160; url: &#39;<a href="https://" rel="nofollow" target="_blank">https://</a>...&#39;, <br />&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160; sortname: &#39;start_date&#39;,<br />&#160;&#160; sortorder: &#39;asc&#39;,<br />&#160;&#160; rowList: [50,100,250,500,750],<br />&#160;&#160; rowNum:100,<br />&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160; viewrecords: true,<br />&#160;&#160; imgpath: &#39;<a href="https://" rel="nofollow" target="_blank">https://</a>...&#39;, <br />&#160;&#160; width: &#39;...&#39;,<br />&#160;&#160; height: &#39;...&#39;,<br />&#160;&#160; pager: jQuery("#pager"),<br />&#160;&#160; forceFit: true,<br />&#160;&#160; treeGrid: true,<br />&#160;&#160; treeGridModel: &#39;adjacency&#39;,<br />&#160;&#160; ExpandColumn: &#39;prm_states.name&#39;,<br />&#160;&#160; colModel : [<br />&#160;&#160;&#160;&#160;&#160; { label: &#39;...&#39;,name: &#39;prm_states.name&#39;,width: &#39;650&#39;,align: &#39;left&#39;,sortable: true,search: true},<br />&#160;&#160;&#160;&#160;&#160; { label: &#39;...&#39;,name: &#39;state_owner&#39;,width: &#39;200&#39;,align: &#39;left&#39;,sortable: true,search: true},<br />&#160;&#160;&#160;&#160;&#160; { label: &#39;...&#39;,name: &#39;prm_states.start_date&#39;,width: &#39;100&#39;,align: &#39;center&#39;,sortable: true,search: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; formatter: &#39;date&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; formatoptions: {srcformat: &#39;Y-m-d&#39;,newformat: &#39;d.m.Y&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sorttype: &#39;date&#39;,datefmt: &#39;Y-m-d&#39;}<br />})</p>
<p>Maybe the datatype "json" is the problem?</p>
</p>
<p>Greetings</p>
<p>- Marcel Karras</p>
]]></description>
        	        	<pubDate>Mon, 15 Feb 2010 16:25:35 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Treegrid date sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-date-sorting#p11720</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/treegrid-date-sorting#p11720</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is not a bug. The problem is that in tree grid mode the sorting is at client side. For this purpose you should set sorttype option in colModel in order all to work. Ok. See docs.</p>
<p>Best Regrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 10 Nov 2009 08:27:28 +0200</pubDate>
        </item>
        <item>
        	<title>Marcel Karras on Treegrid date sorting</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-date-sorting#p11718</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/treegrid-date-sorting#p11718</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I&#39;ve found a problem by sorting a treegrid column by date. I used the same column model as in non-tree grids (there everything works fine) but the attempt to sort the date column will sort the date letter by letter. It seems if the date formatter I use isn&#39;t recognized correctly. I use the formatter "date" and the options "srcformat: &#39;Y-m-d&#39;, newformat: &#39;d.m.Y&#39; " to display a localized date string.</p>
<p>The treegrid examples on the jqgrid demo pages don&#39;t show a date formatted column, furthermore the "Debit" column in the examples won&#39;t get sorted correctly either.</p>
<p>Is this a bug or am I missing something?</p>
</p>
<p>Greetings</p>
<p>- Marcel Karras</p>
]]></description>
        	        	<pubDate>Tue, 10 Nov 2009 08:20:55 +0200</pubDate>
        </item>
</channel>
</rss>