<?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: Local Sorting Issue</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue</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/local-sorting-issue/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20880</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20880</guid>
        	        	<description><![CDATA[<p>Hi Oleg,</p>
</p>
<p>Using just the "text" property did not work. But the following code worked:</p>
</p>
<p><strong>&#160;&#160;&#160; if (rowObject.IsOverdue == undefined){<br />&#160;&#160; &#160;&#160;&#160; &#160;if (rowObject.childNodes[5].textContent == "True"){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return "&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + options.rowId + "&#39; target=_new title=&#39;Progress Updates on this project is outdated! Click to open the latest Project Dashboard&#39; class=&#39;gridOverdue&#39; style=&#39;color:#FF0000;&#39;&#62;" + $.fmatter.util.DateFormat("m/d/Y",cellvalue,"d M Y",$.jgrid.formatter.date) + "&#60;/a&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;else{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return "&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + options.rowId + "&#39; target=_new title=&#39;Click to open the latest Project Dashboard&#39;&#62;" + $.fmatter.util.DateFormat("m/d/Y",cellvalue,"d M Y",$.jgrid.formatter.date) + "&#60;/a&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;else{<br />&#160;&#160; &#160;&#160;&#160; &#160;if (rowObject.IsOverdue == "True"){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return "&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + options.rowId + "&#39; target=_new title=&#39;Progress Updates on this project is outdated! Click to open the latest Project Dashboard&#39; class=&#39;gridOverdue&#39; style=&#39;color:#FF0000;&#39;&#62;" + $.fmatter.util.DateFormat("m/d/Y",cellvalue,"d M Y",$.jgrid.formatter.date) + "&#60;/a&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;else{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return "&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + options.rowId + "&#39; target=_new title=&#39;Click to open the latest Project Dashboard&#39;&#62;" + $.fmatter.util.DateFormat("m/d/Y",cellvalue,"d M Y",$.jgrid.formatter.date) + "&#60;/a&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;}</strong></p>
<p>It seems when the grid is created, the childNodes[5] is available, but not thereafter. Then you can use the actual column name, e.g. "rowObject.IsOverdue".</p>
</p>
<p>Thanks for all your help!!</p>
</p>
<p>Cheers,</p>
<p>Cas</p>
]]></description>
        	        	<pubDate>Thu, 18 Nov 2010 07:04:05 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20871</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20871</guid>
        	        	<description><![CDATA[<p>It seems to me you should only replace</p>
<p>if (rowObject.childNodes[5].<strong>textContent</strong> == "True"){</p>
<p>to</p>
<p>if (rowObject.childNodes[5].<strong>text</strong> === "True") {</p>
<p>see the <a href="http://www.ok-soft-gmbh.com/jqGrid/casperd1.htm" target="_blank">results</a>. Of case to be able to use <strong>gridview: true</strong> you should use custom formatter for all coulumns which values you counstruct you currecntly inside of <strong>afterInsertRow</strong>.</p>
<p>Regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Wed, 17 Nov 2010 17:37:38 +0200</pubDate>
        </item>
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20869</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20869</guid>
        	        	<description><![CDATA[<p>Hi Oleg,</p>
</p>
<p>jqGrid Defaults:</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $.extend(jQuery.jgrid.defaults,{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;altRows: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;altclass: &#39;altRow&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;emptyrecords: &#39;No records to display.&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;gridview: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadonce: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadui: &#39;disable&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pgbuttons: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pginput: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;//rowNum: -1,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;recordtext: &#39;{2} items&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortable: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewsortcols: [false,&#39;vertical&#39;,true]<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</p>
</p>
<p>Grid definition:</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $("#tblActiveProjects").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;../Data_Templates/DTM_Projects_Select.asp?FilterType=1&#38;TeamMemberType=1&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames: [&#39;Prj. No.&#39;,&#39;Project Name&#39;, &#39;Status&#39;,&#39;RAG&#39;,&#39;Latest Update&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;Issues&#39;,&#39;Risks&#39;,&#39;Changes&#39;,&#39;Defects&#39;,&#39;&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel: [<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ProjectNumber&#39;, width:80, align:&#39;center&#39;, sorttype:&#39;text&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ProjectName&#39;, width:445, align:&#39;left&#39;, sorttype:&#39;text&#39;, classes:&#39;gridLink&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ProjectStatus&#39;, width:90, align:&#39;center&#39;, sorttype:&#39;text&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ProjectRAGIndicator&#39;, width:40, align:&#39;center&#39;, sortable:false, formatter:RAG_formatter},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ProjectStatusDate&#39;, width:90, align:&#39;center&#39;, sorttype:&#39;date&#39;, formatter:OverdueDate_formatter, classes:&#39;gridLink&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;IsOverdue&#39;, width:0, align:&#39;center&#39;, hidden:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;LinkToDashboard&#39;, width:0, align:&#39;center&#39;, hidden:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;LinkToWorkspace&#39;, width:0, align:&#39;center&#39;, hidden:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ActiveIssues&#39;, width:50, align:&#39;center&#39;, sorttype:&#39;integer&#39;, classes:&#39;gridLink&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ActiveRisks&#39;, width:50, align:&#39;center&#39;, sorttype:&#39;integer&#39;, classes:&#39;gridLink&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ActiveChanges&#39;, width:50, align:&#39;center&#39;, sorttype:&#39;integer&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ActiveDefects&#39;, width:50, align:&#39;center&#39;, sorttype:&#39;integer&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Delete&#39;, width:25, align:&#39;center&#39;, sortable:false, classes:&#39;actionIcon&#39;, title:&#39;Delete&#39;}&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height: 90,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;ProjectName&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#pagerActiveProjects&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; toolbar: [true,"top"],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;afterInsertRow: function(rowid, aData){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("#tblActiveProjects").setCell(rowid,&#39;ProjectName&#39;,"&#60;a href=&#39;" + aData.LinkToWorkspace + "&#39; target=_new title=&#39;Click the Project Name to open the Project Workspace&#39;&#62;" + aData.ProjectName + "&#60;/a&#62;");<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("#tblActiveProjects").setCell(rowid,&#39;ActiveRisks&#39;,"&#60;a href=&#39;" + aData.LinkToWorkspace + "/Lists/Risks&#39; target=_new title=&#39;Click to open the Project Risks list&#39;&#62;" + aData.ActiveRisks + "&#60;/a&#62;");<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("#tblActiveProjects").setCell(rowid,&#39;ActiveIssues&#39;,"&#60;a href=&#39;" + aData.LinkToWorkspace + "/Lists/Issues&#39; target=_new title=&#39;Click to open the Project Issues list&#39;&#62;" + aData.ActiveIssues + "&#60;/a&#62;");<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("#tblActiveProjects").setCell(rowid,&#39;Delete&#39;,"&#60;img src=&#39;../Images/ButtonImages/delete_small.png&#39; onclick=alert(&#39;" + rowid + "&#39;); /&#62;");<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</p>
</p>
<p>Custom Formatter Fucntion:</p>
<p>OverdueDate_formatter = function (cellvalue, options, rowObject){<br />&#160;&#160; &#160;if (rowObject.childNodes[5].textContent == "True"){<br />&#160;&#160; &#160;&#160;&#160; &#160;return "&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + options.rowId + "&#39; target=_new title=&#39;Progress Updates on this project is outdated! Click to open the latest Project Dashboard&#39;&#62;" + $.fmatter.util.DateFormat("m/d/Y",cellvalue,"d M Y",$.jgrid.formatter.date) + "&#60;/a&#62;";<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;else{<br />&#160;&#160; &#160;&#160;&#160; &#160;return "&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + options.rowId + "&#39; target=_new title=&#39;Click to open the latest Project Dashboard&#39;&#62;" + $.fmatter.util.DateFormat("m/d/Y",cellvalue,"d M Y",$.jgrid.formatter.date) + "&#60;/a&#62;";<br />&#160;&#160; &#160;}<br />}</p>
]]></description>
        	        	<pubDate>Wed, 17 Nov 2010 15:44:20 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20868</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20868</guid>
        	        	<description><![CDATA[<p>Hi Cas,</p>
<p>I suppose there are a bug in your code. If you post the full code of your current example which reproduce your problem (or post a link to it) I could show it.</p>
<p>Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Wed, 17 Nov 2010 15:24:43 +0200</pubDate>
        </item>
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20864</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue/page-2#p20864</guid>
        	        	<description><![CDATA[<p>Hi Oleg,</p>
</p>
<p>When I put the alert(rowObject.childNodes[5].textContent); debug statement in the formatter function, it does return the values. It just seems to ignore it in the if (rowObject.childNodes[5].textContent == "True") condition. Any ideas?</p>
</p>
<p>Thanks,</p>
<p>Cas</p>
]]></description>
        	        	<pubDate>Wed, 17 Nov 2010 08:24:10 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20862</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20862</guid>
        	        	<description><![CDATA[<p>Probably custom sorting with <strong>sorttype</strong> as function or <strong>index</strong> as function could solve your problem.</p>
<p>In case of index as function it should be declared as &#160;index: function(obj) {/**/} and return for example text string which can be used instead of the cell contain. Look at my <a href="/blog/?page_id=393/help/custom-local-sort-with-respect-of-the-function-as-index/" target="_blank">old post</a>&#160;for more details. In the post you will find some urls to code examples.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Wed, 17 Nov 2010 01:46:31 +0200</pubDate>
        </item>
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20845</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20845</guid>
        	        	<description><![CDATA[<p>Hi Oleg,</p>
</p>
<p>After implementing the custom formatter, I&#39;m getting closer to the solution.</p>
</p>
<p>However, I&#39;m facing this issue now:</p>
</p>
<p>If I add the following code in my custom formatter function, the data is displayed correctly in the gird, and the sorting works well:</p>
<p><strong>return "&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + options.rowId + "&#39; target=_new title=&#39;Progress Updates on this project is outdated! Click to open the latest Project Dashboard&#39;&#62;" + $.fmatter.util.DateFormat("m/d/Y",cellvalue,"d M Y",$.jgrid.formatter.date) + "&#60;/a&#62;";</strong></p>
</p>
<p>When I however add a condition into this function, the data is still diplayed correctly, but the moment I sort, all the rows disappear from the grid:</p>
</p>
<p><strong>&#160;&#160;&#160; if (rowObject.childNodes[5].textContent == "True"){<br />&#160;&#160; &#160;&#160;&#160; &#160;return "&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + options.rowId + "&#39; target=_new title=&#39;Progress Updates on this project is outdated! Click to open the latest Project Dashboard&#39;&#62;" + $.fmatter.util.DateFormat("m/d/Y",cellvalue,"d M Y",$.jgrid.formatter.date) + "&#60;/a&#62;";<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;else{<br />&#160;&#160; &#160;&#160;&#160; &#160;return "&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + options.rowId + "&#39; target=_new title=&#39;Click to open the latest Project Dashboard&#39;&#62;" + $.fmatter.util.DateFormat("m/d/Y",cellvalue,"d M Y",$.jgrid.formatter.date) + "&#60;/a&#62;";<br />&#160;&#160; &#160;}</strong></p>
]]></description>
        	        	<pubDate>Tue, 16 Nov 2010 12:42:44 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20839</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20839</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>look at this <a href="http://stackoverflow.com/questions/3764459/why-will-this-dateparser-not-work-in-safari/3765216#3765216" target="_blank">old answer</a>&#160;which can be easy modified for your date format. You can also use <a href="https://github.com/tonytomov/jqGrid/blob/master/js/jquery.fmatter.js#L123" target="_blank">$.fmatter.util.DateFormat</a> function. But if you need only display only the date like you describe in your last post, you can use <a href="/jqgridwiki/doku.php?id=wiki:predefined_formatter#predefined_format_types" target="_blank">predefined formatter</a>&#160;date like I used on <a href="http://www.ok-soft-gmbh.com/jqGrid/casperd.htm" target="_blank">the example</a>.</p>
<p>Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 20:13:48 +0200</pubDate>
        </item>
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20837</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20837</guid>
        	        	<description><![CDATA[<p>Hi Oleg,</p>
</p>
<p>I&#39;m trying your suggestion of custom formatter and unformatter, but with no luck. Can you please give me some guidance: I&#39;ve got a date column that comes in the XML in format m/d/Y. I want to display this in the jqGrid in the format d M Y. But, I also want to be able to sort this column in date order.</p>
</p>
<p>Can you please give me the code for the colmodel, as well for the formatter and unformatter fucntions?</p>
</p>
<p>Thanks,</p>
<p>Cas</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 18:16:50 +0200</pubDate>
        </item>
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20834</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20834</guid>
        	        	<description><![CDATA[<p>Hi Oleg,</p>
</p>
<p>I have removed the datefmt: &#39;d m Y&#39;, and also added: formatoptions:{srcformat:&#39;m/d/Y&#39;,newformat:&#39;d M Y&#39;}.</p>
</p>
<p>This still works on version 3.6.5, but breaks on 3.72 and 3.8.</p>
</p>
<p>Thanks,</p>
<p>Cas</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 16:56:36 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20832</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20832</guid>
        	        	<description><![CDATA[<p>Hi Cas,</p>
<p>I understand why some parameters are missing, but all other problems stay opened. I recommend you to rewrite your code using the custom formatters.</p>
<p>Regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 16:24:51 +0200</pubDate>
        </item>
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20830</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20830</guid>
        	        	<description><![CDATA[<p>Hi Oleg,</p>
</p>
<p>Sorry, I forgot to post the jqGrid defaults. Here it is:</p>
</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $.extend(jQuery.jgrid.defaults,{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;altRows: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;altclass: &#39;altRow&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;emptyrecords: &#39;No records to display.&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;gridview: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadonce: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;loadui: &#39;disable&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pgbuttons: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pginput: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum: -1,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;recordtext: &#39;{2} items&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortable: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewsortcols: [false,&#39;vertical&#39;,true]<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</p>
</p>
<p>I have also made the following change in the language file: newformat:"d M Y"</p>
</p>
<p>Thanks,</p>
<p>Cas</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 16:02:10 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20827</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20827</guid>
        	        	<description><![CDATA[<p>Hello Cas,</p>
<p>the code which you posted has some problems. First, I don&#39;t found <strong>datatype:&#39;xml&#39;</strong> in the code which you posted. Second, your XML data has no <strong>page</strong> and <strong>total</strong> items. So it will be&#160;supposed&#160;that you have the first page from total 0 pages. Next, the date format of the XML data are <strong>not in the ISO format</strong> which is expected. So you have to use</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6739' value='Select Code' data-codeid='sfcode6739' /></p>
<div class='sfcode' id='sfcode6739'>formatoptions:{srcformat:&#39;d/m/Y&#39;, newformat: &#39;d M Y&#39;}</div>
<p>instead of <strong>datefmt:&#39;d M Y&#39;</strong>. At the end you not really use the most of data formated by the jqGrid. Instead of that y<strong>ou overwrite the data with absolute another formatted data</strong> inside of afterInsertRow. What you will have for example in the column, which you mark as the column in date format, are far from the declared date type. To be able to sort the data jqGrid should be able to read the data value from the cell, unformat it with the formatter which you declared (date formatter). Then jqGrid try compare different values decoded in the way. Is it possible with the data thich you placed in the grid manually?</p>
<p>After all of changes which are required and commenting of the RAG_formatter, which code you not posted, the data can be displayed, but I see no "NaN" error (see&#160;<a href="http://www.ok-soft-gmbh.com/jqGrid/casperd.htm" target="_blank">here</a>). I could imagine that with other data you can have different kind of errors, because like I wrote before, you do manual formatting of data with&#160;declaring&#160;the data as the data formatted corresponds to another formatter.</p>
<p>If you need format the cell contains manually, you should define your <a href="/jqgridwiki/doku.php?id=wiki:custom_formatter" target="_blank">custom formatter</a> and <a href="/jqgridwiki/doku.php?id=wiki:custom_formatter#unformatting" target="_blank">custom unformater</a> as a functions. Inside of the functions you can do almost the same as you do inside of afterInsertRow. After removing afterInsertRow you can set also <strong>gridview:true</strong> which is almost always recommended.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 15:42:47 +0200</pubDate>
        </item>
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20821</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20821</guid>
        	        	<description><![CDATA[<p>Hi Oleg,</p>
<p>I&#39;m using the grid.locale-en.js language file. I&#39;m using an XML data source, and not JSON. Here&#39;s an extract of my XML:</p>
</p>
<p>&#60;?xml version=&#39;1.0&#39; encoding=&#39;ISO-8859-1&#39;?&#62;&#60;rows&#62;&#60;records&#62;8&#60;/records&#62;&#60;row id=&#39;14668&#39;&#62;&#60;cell&#62;&#60;![CDATA[PRJ-3366]]&#62;&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[Banking - Italian Casino]]&#62;&#60;/cell&#62;&#60;cell&#62;2 Active&#60;/cell&#62;&#60;cell&#62;Green&#60;/cell&#62;&#60;cell&#62;11/10/2010&#60;/cell&#62;&#60;cell&#62;False&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;cell&#62;<a href="http://derpwa3/EPM2007/Banking" rel="nofollow" target="_blank">http://derpwa3/EPM2007/Banking</a> - Italian Casino&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;/row&#62;&#60;row id=&#39;14669&#39;&#62;&#60;cell&#62;&#60;![CDATA[PRJ-2853]]&#62;&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[Banking - WebECash NET]]&#62;&#60;/cell&#62;&#60;cell&#62;2 Active&#60;/cell&#62;&#60;cell&#62;Green&#60;/cell&#62;&#60;cell&#62;11/10/2010&#60;/cell&#62;&#60;cell&#62;False&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;cell&#62;<a href="http://derpwa3/EPM2007/Banking" rel="nofollow" target="_blank">http://derpwa3/EPM2007/Banking</a> - WebECash NET&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;/row&#62;&#60;row id=&#39;14670&#39;&#62;&#60;cell&#62;&#60;![CDATA[PRJ-2537]]&#62;&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[Business Applications - Affiliates - Project Brooklyn]]&#62;&#60;/cell&#62;&#60;cell&#62;2 Active&#60;/cell&#62;&#60;cell&#62;Green&#60;/cell&#62;&#60;cell&#62;11/10/2010&#60;/cell&#62;&#60;cell&#62;False&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;cell&#62;<a href="http://derpwa3/EPM2007/Project" rel="nofollow" target="_blank">http://derpwa3/EPM2007/Project</a> Brooklyn (Affiliates Redesign)&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;2&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;/row&#62;&#60;row id=&#39;14671&#39;&#62;&#60;cell&#62;&#60;![CDATA[PRJ-3288]]&#62;&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[Business Applications - Affiliates - Spiral Upgrade Project]]&#62;&#60;/cell&#62;&#60;cell&#62;2 Active&#60;/cell&#62;&#60;cell&#62;Green&#60;/cell&#62;&#60;cell&#62;11/10/2010&#60;/cell&#62;&#60;cell&#62;False&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;cell&#62;<a href="http://derpwa3/EPM2007/Business" rel="nofollow" target="_blank">http://derpwa3/EPM2007/Business</a> Applications - Affiliates - Spiral Upgrade Project&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;/row&#62;&#60;row id=&#39;14672&#39;&#62;&#60;cell&#62;&#60;![CDATA[PRJ-2897]]&#62;&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[Business Applications - Game Recommendation Engine]]&#62;&#60;/cell&#62;&#60;cell&#62;2 Active&#60;/cell&#62;&#60;cell&#62;Green&#60;/cell&#62;&#60;cell&#62;11/10/2010&#60;/cell&#62;&#60;cell&#62;False&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;cell&#62;<a href="http://derpwa3/EPM2007/Business" rel="nofollow" target="_blank">http://derpwa3/EPM2007/Business</a> Applications - Game Recommendation Engine&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;/row&#62;&#60;row id=&#39;14673&#39;&#62;&#60;cell&#62;&#60;![CDATA[PRJ-3179]]&#62;&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[Business Applications - Orinoco - Casino Management System]]&#62;&#60;/cell&#62;&#60;cell&#62;2 Active&#60;/cell&#62;&#60;cell&#62;Green&#60;/cell&#62;&#60;cell&#62;11/10/2010&#60;/cell&#62;&#60;cell&#62;False&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;cell&#62;<a href="http://derpwa3/EPM2007/Business" rel="nofollow" target="_blank">http://derpwa3/EPM2007/Business</a> Applications - Vision - Cashier Management System&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;/row&#62;&#60;row id=&#39;10269&#39;&#62;&#60;cell&#62;&#60;![CDATA[PRJ-1869]]&#62;&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[Collusion and Fraud Control (CFC)]]&#62;&#60;/cell&#62;&#60;cell&#62;6 On Hold&#60;/cell&#62;&#60;cell&#62;Green&#60;/cell&#62;&#60;cell&#62;3/31/2010&#60;/cell&#62;&#60;cell&#62;True&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;cell&#62;<a href="http://derpwa3/EPM2007/Collusion" rel="nofollow" target="_blank">http://derpwa3/EPM2007/Collusion</a> and Fraud Control (CFC)&#60;/cell&#62;&#60;cell&#62;1&#60;/cell&#62;&#60;cell&#62;2&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;/row&#62;&#60;row id=&#39;14674&#39;&#62;&#60;cell&#62;&#60;![CDATA[PRJ-3362]]&#62;&#60;/cell&#62;&#60;cell&#62;&#60;![CDATA[OLR-NET v16]]&#62;&#60;/cell&#62;&#60;cell&#62;2 Active&#60;/cell&#62;&#60;cell&#62;Green&#60;/cell&#62;&#60;cell&#62;11/10/2010&#60;/cell&#62;&#60;cell&#62;False&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;cell&#62;<a href="http://derpwa3/EPM2007/OLR-NET" rel="nofollow" target="_blank">http://derpwa3/EPM2007/OLR-NET</a> v16&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;0&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;99&#60;/cell&#62;&#60;cell&#62;&#60;/cell&#62;&#60;/row&#62;&#60;/rows&#62;</p>
</p>
<p>Thanks,</p>
<p>Cas</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 11:28:33 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20817</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20817</guid>
        	        	<description><![CDATA[<p>Hello casperd,</p>
<p>Could you post the information which jqGrid language file you use. Morover test JSON data will be also required to be able to reproduce your problem. You can see JSON data in <a href="http://www.fiddler2.com/fiddler2/" target="_blank">Fiddler</a> or <a href="http://getfirebug.com/" target="_blank">Firebug</a>.</p>
<p>Regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 11:00:04 +0200</pubDate>
        </item>
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20815</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20815</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Has anyone found a sloution yet?</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Mon, 15 Nov 2010 08:32:24 +0200</pubDate>
        </item>
        <item>
        	<title>andyr on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20755</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20755</guid>
        	        	<description><![CDATA[<p>&#160;Hi,</p>
<p>I&#39;m also having the problem where data disappears on sorting - below is a short example that shows the behaviour. If I use setRowData instead of addJSONData it works OK - the rows are sorted and do not disappear. Trouble is I need the pager method as I want to set userdata. This worked ok in 3.6.</p>
<p>Thanks,</p>
<p>Andy</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6245' value='Select Code' data-codeid='sfcode6245' /></p>
<div class='sfcode' id='sfcode6245'>&#60;body&#62;<br />&#160;&#160;&#160; &#60;script type=&#34;text/javascript&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160; $(document).ready(function () {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#foo&#34;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#34;local&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#34;&#34;, &#34;Name&#34;, &#34;QTY&#34;, &#34;Total&#34;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: &#34;key&#34;,&#160;&#160; index: &#34;key&#34;,&#160;&#160; sorttype: &#34;text&#34;,&#160; width: 10, sorttable: false, resizable: false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: &#34;name&#34;,&#160; index: &#34;name&#34;,&#160; sorttype: &#34;text&#34;,&#160; width: 200, resizable: false},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: &#34;qty&#34;,&#160;&#160; index: &#34;qty&#34;,&#160;&#160; sorttype: &#34;float&#34;, width: 50, align: &#34;right&#34; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: &#34;total&#34;, index: &#34;total&#34;, sorttype: &#34;float&#34;, width: 90, formatter: &#34;currency&#34;, align: &#34;right&#34;, resizable: false}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; localReader : {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cell: &#34;&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160; function adddata()<br />&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var pager = {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rows: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {id: 1, key: &#34;t&#34;, name: &#34;test&#34;, qty: 1, total: 1.99},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {id: 2, key: &#34;t&#34;, name: &#34;test2&#34;, qty: 2, total: 2.99}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: 2,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total: 1,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userdata: [{test: 123}, {test2: 456}]<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; };</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#foo&#34;).jqGrid(&#34;clearGridData&#34;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#foo&#34;)[0].addJSONData(pager);<br />&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;table id=&#34;foo&#34;&#62;&#60;/table&#62;</p>
<p>&#160;&#160;&#160; &#60;button onclick=&#34;adddata()&#34;&#62;add data&#60;/button&#62;</p>
<p>&#160; &#60;/body&#62;</p>
</div>
]]></description>
        	        	<pubDate>Thu, 11 Nov 2010 16:31:19 +0200</pubDate>
        </item>
        <item>
        	<title>casperd on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20744</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20744</guid>
        	        	<description><![CDATA[<p>Here&#39;s me detailed grid definition:</p>
</p>
<p>$("#tblActiveProjects").jqGrid({<br />&#160;&#160;&#160; url:&#39;../Data_Templates/DTM_Projects_Select.asp?FilterType=1&#38;TeamMemberType=1&#39;,<br />&#160;&#160;&#160; colNames: [&#39;Prj. No.&#39;,&#39;Project Name&#39;, &#39;Status&#39;,&#39;RAG&#39;,&#39;Latest Update&#39;,&#39;&#39;,&#39;&#39;,&#39;&#39;,&#39;Issues&#39;,&#39;Risks&#39;,&#39;Changes&#39;,&#39;Defects&#39;,&#39;&#39;],<br />&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ProjectNumber&#39;, width:80, align:&#39;center&#39;, sorttype:&#39;text&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ProjectName&#39;, width:445, align:&#39;left&#39;, sorttype:&#39;text&#39;, classes:&#39;gridLink&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ProjectStatus&#39;, width:90, align:&#39;center&#39;, sorttype:&#39;text&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ProjectRAGIndicator&#39;, width:40, align:&#39;center&#39;, sortable:false, formatter:RAG_formatter},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ProjectStatusDate&#39;, width:90, align:&#39;center&#39;, datefmt:&#39;d M Y&#39;, sorttype:&#39;date&#39;, formatter:&#39;date&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;IsOverdue&#39;, width:0, align:&#39;center&#39;, hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;LinkToDashboard&#39;, width:0, align:&#39;center&#39;, hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;LinkToWorkspace&#39;, width:0, align:&#39;center&#39;, hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ActiveIssues&#39;, width:50, align:&#39;center&#39;, sorttype:&#39;integer&#39;, classes:&#39;gridLink&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ActiveRisks&#39;, width:50, align:&#39;center&#39;, sorttype:&#39;integer&#39;, classes:&#39;gridLink&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ActiveChanges&#39;, width:50, align:&#39;center&#39;, sorttype:&#39;integer&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ActiveDefects&#39;, width:50, align:&#39;center&#39;, sorttype:&#39;integer&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Delete&#39;, width:25, align:&#39;center&#39;, sortable:false, classes:&#39;actionIcon&#39;, title:&#39;Delete&#39;}&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; height: 160,<br />&#160;&#160;&#160; sortname: &#39;ProjectName&#39;,<br />&#160;&#160;&#160; pager: &#39;#pagerActiveProjects&#39;,<br />&#160;&#160;&#160; gridview: false,<br />&#160;&#160;&#160; toolbar: [true,"top"],<br />&#160;&#160;&#160; afterInsertRow: function(rowid, aData){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#tblActiveProjects").setCell(rowid,&#39;ProjectName&#39;,"&#60;a href=&#39;" + aData.LinkToWorkspace + "&#39; target=_new title=&#39;Click the Project Name to open the Project Workspace&#39;&#62;" + aData.ProjectName + "&#60;/a&#62;");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#tblActiveProjects").setCell(rowid,&#39;ActiveRisks&#39;,"&#60;a href=&#39;" + aData.LinkToWorkspace + "/Lists/Risks&#39; target=_new title=&#39;Click to open the Project Risks list&#39;&#62;" + aData.ActiveRisks + "&#60;/a&#62;");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#tblActiveProjects").setCell(rowid,&#39;ActiveIssues&#39;,"&#60;a href=&#39;" + aData.LinkToWorkspace + "/Lists/Issues&#39; target=_new title=&#39;Click to open the Project Issues list&#39;&#62;" + aData.ActiveIssues + "&#60;/a&#62;");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#tblActiveProjects").setCell(rowid,&#39;Delete&#39;,"&#60;img src=&#39;../Images/ButtonImages/delete_small.png&#39; onclick=alert(&#39;" + rowid + "&#39;); /&#62;");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (aData.IsOverdue==&#39;True&#39;){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#tblActiveProjects").setCell(rowid,&#39;ProjectStatusDate&#39;,"&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID= " + rowid + "&#39; target=_new title=&#39;Progress Updates on this project is outdated! Click to open the latest Project Dashboard&#39;&#62;" + $("#tblActiveProjects").getCell(rowid,4) + "&#60;/a&#62;","gridLink gridOverdue");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; else{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#tblActiveProjects").setCell(rowid,&#39;ProjectStatusDate&#39;,"&#60;a href=&#39;Reports/RPT_Dashboard.asp?ReportProjectID=" + rowid + "&#39; target=_new title=&#39;Click to open the latest Project Dashboard&#39; class=&#39;gridLink&#39;&#62;" + $("#tblActiveProjects").getCell(rowid,4) + "&#60;/a&#62;","gridLink");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; }</p>
<p>});</p>
</p>
<p>The grid works 100% on 3.6.5, but when I upgrade to 3.72, 3.8.0 or 3.8.1, the sorting of the date colum is not working. I get "NaN" errors in this column.</p>
</p>
<p>Thanks!</p>
]]></description>
        	        	<pubDate>Thu, 11 Nov 2010 07:04:37 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20735</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20735</guid>
        	        	<description><![CDATA[<p>Sorry but to make any tests one need some test JSON data.</p>
<p>I already see one small errors in your javaScript file: t<span style="font-size: 14.1667px;">here are no <strong>autoWidth</strong> parameter in jqGrid: only&#160;<strong>autowidth</strong>.</span></p>
<p><span style="font-size: 14.1667px;">Moreover i</span><span style="font-size: 14.1667px;">f <strong>groupLabel</strong>&#160;column contain unique data for every grid row you should probably better define <strong>key:true</strong> in the <strong>groupLabel</strong> column definition. Then you can remove <strong>id: &#39;groupLabel&#39;</strong> from the <strong>jsonReader</strong>.</span></p>
<p><span style="font-size: 14.1667px;">Instead of setting <strong>datatype</strong> to <strong>&#39;local&#39;</strong> inside of <strong>loadComplete</strong> it is better to use new parameter&#160;<strong>loadonce:true</strong> which do the same.</span></p>
<p><span style="font-size: 14.1667px;">Best regards<br />Oleg&#160;</span></p>
]]></description>
        	        	<pubDate>Wed, 10 Nov 2010 19:18:35 +0200</pubDate>
        </item>
        <item>
        	<title>fsa317 on Local Sorting Issue</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20719</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/local-sorting-issue#p20719</guid>
        	        	<description><![CDATA[<p>For my local sorting issue here is the code:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5017' value='Select Code' data-codeid='sfcode5017' /></p>
<div class='sfcode' id='sfcode5017'>
<p>&#60;script&#62;<br />$(function() {</p>
<p>jQuery(&#34;#alerttable&#34;).jqGrid({ <br />url:&#39;ActionServlet?ACTION=P1BYACTION&#39;, <br />datatype: &#34;json&#34;, <br />height:800,<br />autoWidth:true,<br />jsonReader : {<br />&#160; id: &#39;groupLabel&#39;,<br />&#160;&#160; repeatitems: false<br />&#160; <br />},<br />loadComplete : function () {<br />&#160;&#160; &#160;$(&#34;#alerttable&#34;).setGridParam({datatype:&#39;local&#39;});<br />},</p>
<p>sortable:true,<br />colNames:[&#39;Group Label&#39;,&#39;Count of Alerts&#39;,&#39;xVal&#39;,&#39;DVal&#39;], <br />colModel:[ <br />&#160;&#160; &#160;{name:&#39;groupLabel&#39;,label:&#39;Group Label&#39;, width:305,formatter:&#39;showlink&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;formatoptions:{baseLinkUrl:&#39;DDAlertGroup.jsp&#39;,idName:&#39;grouplabel&#39;}},<br />&#160;&#160; &#160;{name:&#39;countOfAlerts&#39;,width:120,sorttype:&#39;int&#39;},<br />&#160;&#160; &#160;{name:&#39;xValue&#39;,width:120,sorttype: &#39;float&#39;,formatter:&#39;number&#39;},<br />&#160;&#160; &#160;{name:&#39;dValue&#39;,width:120, sorttype: &#39;float&#39;,formatter:&#39;number&#39;}<br />&#160;&#160; &#160; ], <br />&#160;rowNum:1000, <br />&#160;sortname: &#39;groupLabel&#39;, <br />&#160;viewrecords: true, <br />&#160;sortorder: &#34;desc&#34;, <br />&#160;caption:&#34;Alerts&#34; }); </p>
<p>});</p>
<p>&#60;/script&#62;</p>
</p>
</div>
<p>The data loads fine initially but when I click a column all the data disapears.</p></p>
]]></description>
        	        	<pubDate>Wed, 10 Nov 2010 01:20:05 +0200</pubDate>
        </item>
</channel>
</rss>