<?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: userdata, how to access it in useful ways?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-how-to-access-it-in-useful-ways</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/userdata-how-to-access-it-in-useful-ways/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>chrisisbd on userdata, how to access it in useful ways?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-how-to-access-it-in-useful-ways#p25842</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdata-how-to-access-it-in-useful-ways#p25842</guid>
        	        	<description><![CDATA[<p>OK, I finally got there!</p>
<p>My code is now:-</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1804' value='Select Code' data-codeid='sfcode1804' /></p>
<div class='sfcode' id='sfcode1804'>
<p>$(function(){<br />&#160; $("#t2").jqGrid({<br />&#160;&#160;&#160; url:&#39;getData.php?urn=sqlite:////var/www/wiki/data/meta/money.db&#38;table=jessica&#39;,<br />&#160;&#160;&#160; datatype: &#39;xml&#39;,<br />&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; colNames:[&#39;id&#39;,&#39;Date&#39;, &#39;Description&#39;,&#39;Credit&#39;, &#39;Debit&#39;],<br />&#160;&#160;&#160; colModel :[<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;, index:&#39;id&#39;, width:20, editable: true},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;Date&#39;, index:&#39;Date&#39;, width:50, editable: true},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;Description&#39;, index:&#39;Description&#39;, width:500, align:&#39;right&#39;, editable: true},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;Credit&#39;, index:&#39;Credit&#39;, width:80, align:&#39;right&#39;, editable: true},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;Debit&#39;, index:&#39;Debit&#39;, width:80, align:&#39;right&#39;, editable: true}<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; sortname: &#39;id&#39;, &#160;<br />&#160;&#160;&#160; sortorder: &#39;asc&#39;, <br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160; caption: "Caption",<br />&#160;&#160;&#160; cellEdit: true,<br />&#160;&#160;&#160; userDataOnFooter: true,<br />&#160;&#160;&#160; footerrow: true,<br />&#160;&#160;&#160; loadComplete: function (x) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var z = ""<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var x = jQuery("#t2").jqGrid(&#39;getGridParam&#39;, &#39;userData&#39;)[&#39;Debit&#39;];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(x); <br />&#160;&#160;&#160; }<br />&#160; });<br />});</p>
</div>
<p>... and I get to see my data in the alert box.&#160; I think my problem before was simply that I was trying to get at the userdata before the grid had been instantiated.&#160; The documentation doesn&#39;t help at all on this, I had the syntax of getGridParam correct but was calling it before there was any data to access.</p>
<p>I think there needs to be a full example using loadComplete (or something else) to show how to actually get some userdata by name and do something with it.</p>
]]></description>
        	        	<pubDate>Mon, 30 Jan 2012 19:54:18 +0200</pubDate>
        </item>
        <item>
        	<title>tony on userdata, how to access it in useful ways?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-how-to-access-it-in-useful-ways#p25840</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdata-how-to-access-it-in-useful-ways#p25840</guid>
        	        	<description><![CDATA[<p>Well,</p>
<p>You refer to the documenation, but it seems you do not read it carefully.</p>
<p>Your calling convention is wrong.</p>
<p>Please refer here</p>
<p><a rel="nofollow" href="/jqgridwiki/doku.php?id=wiki:retrieving_data#user_data" target="_blank"></a><a href="http://www.trirand.com/jqgridw" rel="nofollow" target="_blank">http://www.trirand.com/jqgridw</a>.....#user_data</p>
<p>Read to the end please</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Mon, 30 Jan 2012 18:23:45 +0200</pubDate>
        </item>
        <item>
        	<title>chrisisbd on userdata, how to access it in useful ways?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdata-how-to-access-it-in-useful-ways#p25839</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdata-how-to-access-it-in-useful-ways#p25839</guid>
        	        	<description><![CDATA[<p>I have the following code</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5083' value='Select Code' data-codeid='sfcode5083' /></p>
<div class='sfcode' id='sfcode5083'>
<p>$(function(){<br />&#160; var x = "userData is: " + $("#t2").jqGrid.getGridParam(&#39;userData&#39;);<br />&#160; $("#t2").jqGrid({<br />&#160;&#160;&#160; url:&#39;getData.php?urn=sqlite:////var/www/wiki/data/meta/money.db&#38;table=jessica&#39;,<br />&#160;&#160;&#160; datatype: &#39;xml&#39;,<br />&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; colNames:[&#39;id&#39;,&#39;Date&#39;, &#39;Description&#39;,&#39;Credit&#39;, &#39;Debit&#39;],<br />&#160;&#160;&#160; colModel :[<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;, index:&#39;id&#39;, width:20, editable: true},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;Date&#39;, index:&#39;Date&#39;, width:50, editable: true},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;Description&#39;, index:&#39;Description&#39;, width:500, align:&#39;right&#39;, editable: true},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;Credit&#39;, index:&#39;Credit&#39;, width:80, align:&#39;right&#39;, editable: true},<br />&#160;&#160;&#160;&#160;&#160; {name:&#39;Debit&#39;, index:&#39;Debit&#39;, width:80, align:&#39;right&#39;, editable: true}<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160; sortorder: &#39;asc&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160; caption: x,<br />&#160;&#160;&#160; cellEdit: true,<br />&#160;&#160;&#160; userDataOnFooter: true,<br />&#160;&#160;&#160; footerrow: true<br />&#160; });<br />});<br />&#60;/script&#62;</p>
<p>&#60;/head&#62;<br />&#60;body&#62;<br />&#60;H3&#62;&#60;script&#62;var msg="Hello everyone";document.write(msg);&#60;/script&#62;&#60;/H3&#62;<br />&#160;<br />&#60;table id="t2"&#62;&#60;tr&#62;&#60;td/&#62;&#60;/tr&#62;&#60;/table&#62;<br />&#60;div id="pager"&#62;&#60;/div&#62;<br />&#60;table id="t3"&#62;&#60;tr&#62;&#60;td/&#62;&#60;/tr&#62;&#60;/table&#62;</p>
</div>
<p>The userdata *is* being sent because I see it in the footer.&#160; However I can&#39;t see *any* other way to access it, I&#39;ve tried $("#$("#t2").jqGrid.getGridParam(&#39;userData&#39;); and $("#t2").getGridParam(&#39;userData&#39;); both always return undefined. There seems no actual way to get at the userdata in a form that can actually be used.</p>
<p>While I&#39;m about it the documentation refers to the &#39;options&#39; array, is this an actual, accessible, array or is it just a way of describing things?</p>
]]></description>
        	        	<pubDate>Mon, 30 Jan 2012 16:59:40 +0200</pubDate>
        </item>
</channel>
</rss>