<?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: how to add a name:value pair to json data?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-namevalue-pair-to-json-data</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/how-to-add-a-namevalue-pair-to-json-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Ed Valentine on how to add a name:value pair to json data?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-namevalue-pair-to-json-data#p18892</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-namevalue-pair-to-json-data#p18892</guid>
        	        	<description><![CDATA[<p>I am using the following as the test of what is returned and what is in the alert box is the function shown.</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadComplete:function(){<br />//&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("#run_date").val(jQuery("#list").getGridParam(&#39;userData&#39;) );<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var vrun_date = jQuery("#list").getUserData ;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;alert(vrun_date ); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},&#160;&#160;&#160;</p>
</p>
<p>function () {<br />&#160;&#160;&#160; var a = this[0];<br />&#160;&#160;&#160; if (a.grid) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; return a.p.userData;<br />&#160;&#160;&#160; }<br />}</p>
<p>The following is in the json data :</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit9986' value='Select Code' data-codeid='sfcode9986' /></p><div class='sfcode' id='sfcode9986'> "rundate":</div><p><input type='button' class='sfcodeselect' name='sfselectit4705' value='Select Code' data-codeid='sfcode4705' /></p><div class='sfcode' id='sfcode4705'> "{rundate:09-02-2009}",<br /><br />Any suggestions?<br /><br />Thanks.</div></pre></p>
]]></description>
        	        	<pubDate>Sat, 31 Jul 2010 09:07:05 +0300</pubDate>
        </item>
        <item>
        	<title>Ed Valentine on how to add a name:value pair to json data?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-namevalue-pair-to-json-data#p18522</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-namevalue-pair-to-json-data#p18522</guid>
        	        	<description><![CDATA[<p>Thanks. I have put it in and am still not seeing the data. If I use the existing data pair like &#39;records&#39; I get a valid value, but for the new pair the value is &#39;null&#39;. The value is in the json string.</p>
</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; loadComplete:function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("#run_date").val(jQuery("#list").getGridParam(&#39;rundate&#39;) );<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var vrun_date = jQuery("#list").getGridParam(&#39;rundate&#39;) ;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;alert(vrun_date ); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},&#160;&#160;&#160;</p>
</p>
<div class="netInfoResponseText  netInfoText ">
<pre><p><input type='button' class='sfcodeselect' name='sfselectit1719' value='Select Code' data-codeid='sfcode1719' /></p><div class='sfcode' id='sfcode1719'>{"records": "2", "rows": [{"cell": ["12907001", "0", "on_us", ""11184877"", <br />"2797.40", "None", null</div><p><input type='button' class='sfcodeselect' name='sfselectit2668' value='Select Code' data-codeid='sfcode2668' /></p><div class='sfcode' id='sfcode2668'>, null, null, "Cr Item Amt. Exceeds Avg.     ", null, <br />"TEXCHEM CORP", "cust3", " ", " "], ""id"": "573891"</div><p><input type='button' class='sfcodeselect' name='sfselectit6657' value='Select Code' data-codeid='sfcode6657' /></p><div class='sfcode' id='sfcode6657'>}, {"cell": ["12194001",<br />&#160;"0", "on_us", ""11162914"", "372239.00", "None", null, null, null, <br />"Cr Item</div><p><input type='button' class='sfcodeselect' name='sfselectit3319' value='Select Code' data-codeid='sfcode3319' /></p><div class='sfcode' id='sfcode3319'> Amt. Exceeds Avg.     ", null, "AUTO EXPRESS FRONTERA NORTE SA", <br />"cust4", " ", " "], ""id"": "573890"</div><p><input type='button' class='sfcodeselect' name='sfselectit5215' value='Select Code' data-codeid='sfcode5215' /></p><div class='sfcode' id='sfcode5215'>}], "rundate": "09-12-2009", "total": "2", "page": "1"}<br /><br />Any suggestions?<br /></div></pre>
</div>
]]></description>
        	        	<pubDate>Sat, 10 Jul 2010 15:17:47 +0300</pubDate>
        </item>
        <item>
        	<title>Asshiah on how to add a name:value pair to json data?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-namevalue-pair-to-json-data#p18477</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-namevalue-pair-to-json-data#p18477</guid>
        	        	<description><![CDATA[<p>You can find what you need here:</p>
</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....eving_data</a></p>
</p>
<p>You should specify some userdata in the jsonreader to match the json data your server return.</p>
</p>
<p>You can then get this data in the client side using jQuery("grid_id").getGridParam(&#39;userData&#39;) for instance.</p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 15:21:47 +0300</pubDate>
        </item>
        <item>
        	<title>Ed Valentine on how to add a name:value pair to json data?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-namevalue-pair-to-json-data#p18475</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-add-a-namevalue-pair-to-json-data#p18475</guid>
        	        	<description><![CDATA[<p>Is it possible to add a name:value pair to the json reader like the &#39;page&#39; and &#39;totals&#39; ? there are data that apply to all rows, not just a single row.</p>
<p>How do I reference these values in the HTML/JS?</p>
</p>
<p>Any suggestions?</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 15:09:29 +0300</pubDate>
        </item>
</channel>
</rss>