<?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: sorting: zero values not sorted</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted</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/sorting-zero-values-not-sorted/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>lili5058 on sorting: zero values not sorted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30229</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30229</guid>
        	        	<description><![CDATA[<pre>Thank you for that answer. <img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /><br />I didn&#39;t realized that 0 and null were treated the same, but it makes sense if you look at it closely (that fact that nulls appear blank make<br />it harder to see). This function does the trick for me.<br /><br />sorttype:function(v){
    if (v == null){
        return -1;
    }
    return v;
}
</pre>
]]></description>
        	        	<pubDate>Tue, 11 Feb 2014 19:17:31 +0200</pubDate>
        </item>
        <item>
        	<title>tony on sorting: zero values not sorted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30228</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30228</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Here is your <a href="/blog/phpjqgrid/examples/other/test/testbug.html" target="_blank">example</a></p>
</p>
<p>As far as I see the sort is fine. Note that 0 and null are treated as same way so it is possible that some zero</p>
<p>0 values are between the empty ones. Is this the problem?</p>
<p>Regards</p>
</p>
<p>P.S. To overcome this problem you can define a custon sorttype which return the original value</p>
<p>something like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4008' value='Select Code' data-codeid='sfcode4008' /></p>
<div class='sfcode' id='sfcode4008'>
<p>{</p>
<p>name:colModelNames[5],</p>
<p>width:25,</p>
<p>formatter:&#39;currency&#39;,</p>
<p>formatoptions:{decimalPlaces:0,prefix:&#39;$&#39;,defaultValue:&#39; &#39;},</p>
<p>sortable:true,</p>
<p>sorttype:function(v){return v;}, // or what you want if the v is null</p>
<p>align:&#39;right&#39;,</p>
<p>editable:true,</p>
<p>edittype:&#39;text&#39;,</p>
<p>editrules:{number:true}</p>
<p>}</p>
</div>
]]></description>
        	        	<pubDate>Tue, 11 Feb 2014 16:57:22 +0200</pubDate>
        </item>
        <item>
        	<title>lili5058 on sorting: zero values not sorted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30224</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30224</guid>
        	        	<description><![CDATA[<p>Here is some different data. One cell has ovrrdAmount: 0, most have null, some have a few different values.</p>
<p>Is there a way to upload screenshots? Unfortuately the site is not publicly available so I can give a link.</p>
<p>[</p>
<p>{</p>
<p>"id": 128650,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Tape Library Frame (Storage)",</p>
<p>"CI_NAME": "ACD-CALL-LOGGER-1",</p>
<p>"CI_TYPE": "Server-Appliance",</p>
<p>"UDDS": "A-06-5043",</p>
<p>"amount": 50,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-5043",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128570,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Tape Library Frame (Storage)",</p>
<p>"CI_NAME": "ACD-CALL-LOGGER-2",</p>
<p>"CI_TYPE": "Server-Appliance",</p>
<p>"UDDS": "A-06-5043",</p>
<p>"amount": 50,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-5043",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128607,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Tape Library Frame (Storage)",</p>
<p>"CI_NAME": "ACD-REMOTE-1",</p>
<p>"CI_TYPE": "Server-Appliance",</p>
<p>"UDDS": "A-06-5043",</p>
<p>"amount": 50,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-5043",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128521,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Tape Library Frame (Storage)",</p>
<p>"CI_NAME": "ACD-REMOTE-2",</p>
<p>"CI_TYPE": "Server-Appliance",</p>
<p>"UDDS": "A-06-5043",</p>
<p>"amount": 50,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-5043",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128335,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Firewalll (Network)",</p>
<p>"CI_NAME": "ADAMS",</p>
<p>"CI_TYPE": "Network-Firewall",</p>
<p>"UDDS": "A-06-0170",</p>
<p>"amount": 50,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "10004827.001.99",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128532,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Tape Library Frame (Storage)",</p>
<p>"CI_NAME": "ADIX (HD-ACD)",</p>
<p>"CI_TYPE": "Server-Appliance",</p>
<p>"UDDS": "A-06-5043",</p>
<p>"amount": 500,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-5043",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128311,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "ADRIC",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-7171",</p>
<p>"amount": 253,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-7171",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128701,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Tape Library (Storage)",</p>
<p>"CI_NAME": "ADRICR",</p>
<p>"CI_TYPE": "NONE",</p>
<p>"UDDS": null,</p>
<p>"amount": null,</p>
<p>"ovrrdAmount": 20,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": null,</p>
<p>"ovrrdBillingCode": "A",</p>
<p>"isBillingCodeValid": "n",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": true</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128603,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "ADX-MASTER1",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-4190",</p>
<p>"amount": 237,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "10004986.002",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128278,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "ADX-MASTER2",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-4190",</p>
<p>"amount": 237,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "10004986.002",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128480,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "ALLIGATOR",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-7180",</p>
<p>"amount": 237,</p>
<p>"ovrrdAmount": 112,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "10004791.103",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128681,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "ALLIGATOR",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-7180",</p>
<p>"amount": 237,</p>
<p>"ovrrdAmount": 125,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "10004791.103",</p>
<p>"ovrrdBillingCode": "A-06-4089",</p>
<p>"isBillingCodeValid": "n",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "y",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128305,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "AMBROSIA",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-4281",</p>
<p>"amount": 302,</p>
<p>"ovrrdAmount": 0,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-4281",</p>
<p>"ovrrdBillingCode": "D000243",</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128274,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "AMENHOTEP",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-4029",</p>
<p>"amount": 237,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-4029",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128448,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "AMUN",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-4029",</p>
<p>"amount": 237,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-4029",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128604,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "ANTIGONISH",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-4026",</p>
<p>"amount": 286,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "10003130.700",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128436,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "ANUBIS",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-4029",</p>
<p>"amount": 237,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-4029",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"id": 128509,</p>
<p>"cell": {</p>
<p>"serviceName": "Physical Hosting-Full",</p>
<p>"CI_NAME": "ARIAL",</p>
<p>"CI_TYPE": "Server-Physical-RackMount",</p>
<p>"UDDS": "A-06-7173",</p>
<p>"amount": 237,</p>
<p>"ovrrdAmount": null,</p>
<p>"isCmdbDataValid": "yes",</p>
<p>"billingCodeCmdb": "A-06-7173",</p>
<p>"ovrrdBillingCode": null,</p>
<p>"isBillingCodeValid": "y",</p>
<p>"billYorN": "y",</p>
<p>"isSplitBilling": "n",</p>
<p>"volumeName": null,</p>
<p>"isNonCI": false</p>
<p>}</p>
<p>}</p>
<p>]</p>
]]></description>
        	        	<pubDate>Mon, 10 Feb 2014 17:10:51 +0200</pubDate>
        </item>
        <item>
        	<title>tony on sorting: zero values not sorted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30219</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30219</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>I have just tested your example. By the way there are alot of code which is missing.</p>
<p>I need to delete a lot of code and not sure if this is ok.</p>
</p>
<p>Now to the question - in my enviroment everthing work fine. The sorting is fine.</p>
<p>Maybe you will need give me a more data to test.</p>
</p>
<p>Your data for the field does not contain 0 (zero), but null which is quiet different.&#160;</p>
<p>If you replace these values to 0 you will see that the displayed field is canged too.</p>
</p>
<p>If you want a help, please post or send a full working test case.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 10 Feb 2014 15:19:25 +0200</pubDate>
        </item>
        <item>
        	<title>lili5058 on sorting: zero values not sorted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30212</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30212</guid>
        	        	<description><![CDATA[<p>Sure, of course. Here is the info you need. I&#39;m getting the data from the server, but switching to local data with the loadone:true. There is a bit of Grails code in the following snippets, FYI.</p>
</p>
<p><strong>Full grid setup:</strong></p>
<pre>		var billGrid;
		var selRowId = null;
		var colModelNames = [${colModelNames}];
		// [ &#39;serviceName&#39;, &#39;CI_NAME&#39;,&#39;CI_TYPE&#39;,&#39;UDDS&#39;, &#39;amount&#39;, &#39;ovrrdAmount&#39;, &#39;isCmdbDataValid&#39;,&#39;billingCodeCmdb&#39;,&#39;ovrrdBillingCode&#39;,&#39;isBillingCodeValid&#39;,&#39;billYorN&#39;, &#39;isSplitBilling&#39;, &#39;isNonCI&#39;]
		var emptyMsgDiv = $(&#39;<div class="noRows">There are no unposted rows</div>&#39;);
		$(function(){
			var targetPage = 1; 
	  		billGrid = $("#list").jqGrid({
		    url:"${createLink(controller:&#39;physicalBilling&#39;, action:&#39;getBillData&#39;, id:billing.id)}",
		    datatype: &#39;json&#39;,
		    mtype: &#39;GET&#39;,
		    colNames:[ &#39;SEO Service billed&#39;, &#39;Service Name (CI) billed&#39;,&#39;CI Type&#39;,&#39;UDDS&#39;, &#39;Calculated Amount&#39;, &#39;Override Amt&#39;, &#39;CMDB Data Is Valid&#39;,&#39;CMDB Billing code&#39;,&#39;Billing Code Override&#39;,&#39;Billing Code is Valid&#39;,&#39;Bill?&#39;, &#39;Split&#39;, &#39;isNonCI&#39;],
		    colModel :[ 
		      {name:colModelNames[0], width:60, sortable:true, sorttype:&#39;text&#39;},
		      {name:colModelNames[1], width:70, editable:true, edittype:&#39;text&#39;, 
		      			editoptions:{readonly:&#39;readonly&#39;}, formatter:formatCiName, unformat:unformatCiName}, 
		      {name:colModelNames[2], width:50, sortable:true, sorttype:&#39;text&#39;},
		      {name:colModelNames[3], width:30, sortable:true},
		      {name:colModelNames[4], width:30, sortable:true, sorttype:&#39;currency&#39;, align:&#39;right&#39;, formatter:&#39;currency&#39;, 
		      			formatoptions:{decimalPlaces:0,prefix:&#39;$&#39;}},
		      {name:colModelNames[5], width:25, formatter:&#39;currency&#39;, 
		      			formatoptions:{decimalPlaces:0,prefix:&#39;$&#39;,defaultValue:&#39; &#39;}, sortable:true, sorttype:&#39;currency&#39;, align:&#39;right&#39;,
		      			editable:true, edittype:&#39;text&#39;, editrules:{number:true}, cellattr:amountOverrideCellAttr},
		      {name:colModelNames[6], width:30,  align:&#39;center&#39;, 
		      			formatter:overrideOrInvalidContent, cellattr:overrideOrInvalidCellAttr},
		      {name:colModelNames[7], width:50, sortable:true},
		      {name:colModelNames[8], width:50, editable:true, sortable:true},
		      {name:colModelNames[9], width:25, align:&#39;center&#39;, 
		      			formatter:overrideOrInvalidContent, cellattr:overrideOrInvalidCellAttr},
		      {name:colModelNames[10], width:15, align:&#39;center&#39;, sortable:true,
		      			formatter:overrideOrInvalidContent, cellattr:overrideOrInvalidCellAttr,editable:true, 
		      			edittype:&#39;select&#39;,editoptions:{value:{&#39;y&#39;:&#39;yes&#39;,&#39;n&#39;:&#39;no&#39;}} },
		      {name:colModelNames[11], hidden:true},
		      {name:colModelNames[12], hidden:true} 
		    ],
		    width: &#39;1000&#39;,
		    height: &#39;100%&#39;,
		    pager: &#39;#pager&#39;,
		    rowNum:20,
		    rowList:[10,20,50,100,500],
		    viewrecords: true,
		    gridview: true,
		    loadonce: true,
		    footerrow : true, 
		    rowTotal:1000,
		    sortname:&#39;CI_NAME&#39;,
		    ignoreCase:true,
		    subGrid: true,
		    //jsonReader: {repeatitems: false},
		    subGridRowExpanded: function(subgrid_id, row_id) {
		       var subgrid_table_id;
		       subgrid_table_id = subgrid_id+"_t";
		       jQuery("#"+subgrid_id).html("");
		       jQuery("#"+subgrid_table_id).jqGrid({
		          url:&#39;${createLink(controller:&#39;billableServiceItem&#39;, action:&#39;getDetails&#39;)}&#38;id=&#39; + row_id,
		          datatype: "json",
		          colNames: [&#39;CI Validation Notes&#39;,&#39;Billing Code Validation Notes&#39;,&#39;Base CI Data&#39;],
		          colModel: [
		            {name:"valnotes",index:"valnotes",width:200, cellattr:detailsFormatter},
		            {name:"billval",index:"billval",width:200, cellattr:detailsFormatter},
		            {name:"cidetails",index:"cidetails",width:400,formatter:ciDetailsFormatter},           
		          ],
		          height: &#39;100%&#39;,
		       });
		       function ciDetailsFormatter(cellvalue, options, rowObject){
		       		var ciObj = jQuery.parseJSON(cellvalue);
		       		var ciObjStr = "";
		       		for (var prop in ciObj){
		       			if (ciObj.hasOwnProperty(prop)){ 
		       				ciObjStr = ciObjStr + prop + ": " + ciObj[prop] + ", ";
		       			}
		       		}
		       		return &#39;<span style="white-space: normal;">&#39; + ciObjStr + &#39;</span>&#39;;
		       };
		       function detailsFormatter(rowId, val, rawObject, cm){
		            return &#39;class="wrapTableCell"&#39;;
		       };
		   },
		    editurl:"${createLink(controller:&#39;billableServiceItem&#39;, action:&#39;editPerformed&#39;)}",
		    caption: &#39;Physical Items to be billed&#39;,
		    onSelectRow: function(rowId, status, e){
		    	selRowId = rowId;
		    	var selRowData = billGrid.getRowData(selRowId);
		    	if (selRowData.isSplitBilling == "n"){
		    		$("#createSplitBtn").removeAttr(&#39;disabled&#39;);
		    		$("#deleteSplitBtn").attr(&#39;disabled&#39;, &#39;disabled&#39;);
		    	} else {
		    		$("#createSplitBtn").attr(&#39;disabled&#39;, &#39;disabled&#39;);
		    		$("#deleteSplitBtn").removeAttr(&#39;disabled&#39;);
		    	}
		    	$("#editRowBtn").removeAttr(&#39;disabled&#39;);
		    	if (selRowData.isNonCI == &#39;true&#39;){
		    		$("#refreshBtn").attr(&#39;disabled&#39;, &#39;disabled&#39;);
		    	} else {
		    		$("#refreshBtn").removeAttr(&#39;disabled&#39;);
		    	}
		    },
		    onPaging : function(){
		    	disableButtonsForNoSelectedRow();
		    },
		    loadComplete: onLoadComplete,
		  }).navGrid(&#39;#pager&#39;, {add:false, del:false, edit:false, refresh:false, search:true},{},{},{},{},{});
</pre>
<p><strong>Sample data from the server:</strong></p>
<pre>{"total":398,"page":"1","records":398,"rows":[{"id":128650,"cell":{"serviceName":"Physical Hosting-Tape Library Frame (Storage)","CI_NAME":"ACD-CALL-LOGGER-1","CI_TYPE":"Server-Appliance","UDDS":"A-06-5043","amount":50,"ovrrdAmount":null,"isCmdbDataValid":"yes","billingCodeCmdb":"A-06-5043","ovrrdBillingCode":null,"isBillingCodeValid":"y","billYorN":"y","isSplitBilling":"n","volumeName":null,"isNonCI":false}},{"id":128570,"cell":{"serviceName":"Physical Hosting-Tape Library Frame (Storage)","CI_NAME":"ACD-CALL-LOGGER-2","CI_TYPE":"Server-Appliance","UDDS":"A-06-5043","amount":50,"ovrrdAmount":null,"isCmdbDataValid":"yes","billingCodeCmdb":"A-06-5043","ovrrdBillingCode":null,"isBillingCodeValid":"y","billYorN":"y","isSplitBilling":"n","volumeName":null,"isNonCI":false}},{"id":128607,"cell":{"serviceName":"Physical Hosting-Tape Library Frame (Storage)","CI_NAME":"ACD-REMOTE-1","CI_TYPE":"Server-Appliance","UDDS":"A-06-5043","amount":50,"ovrrdAmount":null,"isCmdbDataValid":"yes","billingCodeCmdb":"A-06-5043","ovrrdBillingCode":null,"isBillingCodeValid":"y","billYorN":"y","isSplitBilling":"n","volumeName":null,"isNonCI":false}},{"id":128521,"cell":{"serviceName":"Physical Hosting-Tape Library Frame (Storage)","CI_NAME":"ACD-REMOTE-2","CI_TYPE":"Server-Appliance","UDDS":"A-06-5043","amount":50,"ovrrdAmount":null,"isCmdbDataValid":"yes","billingCodeCmdb":"A-06-5043","ovrrdBillingCode":null,"isBillingCodeValid":"y","billYorN":"y","isSplitBilling":"n","volumeName":null,"isNonCI":false}},{"id":128335,"cell":{"serviceName":"Physical Hosting-Firewalll (Network)","CI_NAME":"ADAMS","CI_TYPE":"Network-Firewall","UDDS":"A-06-0170","amount":50,"ovrrdAmount":null,"isCmdbDataValid":"yes","billingCodeCmdb":"10004827.001.99","ovrrdBillingCode":null,"isBillingCodeValid":"y","billYorN":"y","isSplitBilling":"n","volumeName":null,"isNonCI":false}}
</pre>
]]></description>
        	        	<pubDate>Fri, 07 Feb 2014 16:23:00 +0200</pubDate>
        </item>
        <item>
        	<title>tony on sorting: zero values not sorted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30211</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30211</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>We missed a lot of things that we need to know.</p>
<p>By example - are you using local data or server side obtaining a data.</p>
<p>If you are in second kase you will need to check your server side code when a sort is on.</p>
<p>I need a full grid setup and simple data in order to see where the problem was.</p>
</p>
<p>Kind Regards</p>
]]></description>
        	        	<pubDate>Fri, 07 Feb 2014 11:35:01 +0200</pubDate>
        </item>
        <item>
        	<title>lili5058 on sorting: zero values not sorted</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30208</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-zero-values-not-sorted#p30208</guid>
        	        	<description><![CDATA[<p>My colModel has the following definition for a column:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8953' value='Select Code' data-codeid='sfcode8953' /></p>
<div class='sfcode' id='sfcode8953'>{name:overrdAmt, width:25, formatter:&#39;currency&#39;, formatoptions:{decimalPlaces:0,prefix:&#39;$&#39;,defaultValue:&#39; &#39;}, sortable:true, sorttype:&#39;currency&#39;, align:&#39;right&#39;,editable:true, edittype:&#39;text&#39;, editrules:{number:true}, cellattr:amountOverrideCellAttr},</div>
<p>some of the values are 0 (zero), but when I sort, 0 values are not included. I tried sorttype: int and well as float, but doesn&#39;t seem to matter.</p>
</p>
<p>Am I missing something?</p>
]]></description>
        	        	<pubDate>Thu, 06 Feb 2014 00:03:13 +0200</pubDate>
        </item>
</channel>
</rss>