<?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: Accessing userdata variable</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/accessing-userdata-variable</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/accessing-userdata-variable/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Accessing userdata variable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/accessing-userdata-variable#p9079</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/accessing-userdata-variable#p9079</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>userdata is the xml tag where the data is, userData is array of this data,</p>
<p>so in your case this should work:</p>
<p>var vRunningTotal = jQuery(&#8221;#list&#8221;).getGridParam("userData");</p>
<p>alert(<strong>vRunningTotal.intRunningtotal</strong>)</p>
<p>will alert 120</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 31 Aug 2009 03:41:41 +0300</pubDate>
        </item>
        <item>
        	<title>nisse on Accessing userdata variable</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/accessing-userdata-variable#p8923</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/accessing-userdata-variable#p8923</guid>
        	        	<description><![CDATA[<p>Hello!</p>
<p>I am trying to get the userdata feature to work, but nothing so far. I have seen where others have asked similar and been directed to:</p>
<p><a rel="nofollow" href="http://www.secondpersonplural&#8230;&#8230;16ksnu.htm" target="_blank"></a><a href="http://www.secondpersonplural&#038;" rel="nofollow" target="_blank"></a><a href="http://www.secondpersonplural&#038;#038" rel="nofollow" target="_blank">http://www.secondpersonplural&#038;#038</a>;.....16ksnu.htm</p>
</p>
<p>To be honest I tried what I could but I did not get any wiser!</p>
<p>This is what I have:</p>
<p>This is generated from the server url page:</p>
<p>- &#60;rows&#62;<br />&#160; &#60;page&#62;0&#60;/page&#62; <br />&#160; &#60;total&#62;1&#60;/total&#62; <br />&#160; &#60;records&#62;31&#60;/records&#62; <br />&#160; &#60;userdata name="intRunningtotal"&#62;120&#60;/userdata&#62; <br />&#160; etc</p>
<p>And on my html page with the&#160;jqgrid, I am trying to get the value from the intRunningtotal variable with this:</p>
<p>gridComplete : function() {<br />//alert(&#39;grid completed&#39;);<br />var vRunningTotal = jQuery("#list").getGridParam("userdata"); //I have also tried "userData" and "intRunningtotal"<br />//var vRunningTotal2 = jQuery("#list").getReturnedData();<br />alert (vRunningTotal);<br />//alert (vRunningTotal2);<br />},</p>
<p>I am not sure if I need to set up the XMLReader in order to get this to work, so I tried this:</p>
<p>xmlReader: {<br />&#160;&#160;&#160;&#160; root: "rows",<br />&#160;&#160;&#160;&#160; page: "page",<br />&#160;&#160;&#160;&#160; total: "total",<br />&#160;&#160;&#160;&#160; records: "records",&#160; <br />&#160;&#160;&#160;&#160; //repeatitems: false,<br />&#160;&#160;&#160;&#160; //cell: "cell",<br />&#160;&#160;&#160;&#160; //id: "id",</p>
<p>&#160; userdata: "userdata"<br />},</p>
<p>Still not working, please advise what is missing or wrong?</p>
<p>Thanks</p>
<p>Nisse</p>
]]></description>
        	        	<pubDate>Sat, 22 Aug 2009 05:26:41 +0300</pubDate>
        </item>
</channel>
</rss>