<?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:Again and Again!</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/userdataagain-and-again</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/userdataagain-and-again/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>bhogsett on userdata:Again and Again!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdataagain-and-again#p10158</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdataagain-and-again#p10158</guid>
        	        	<description><![CDATA[<blockquote>
<p>tim said:</p>
<p>Whats is the event you are using to call the function ?</p>
<p>tim</p>
</blockquote>
<hr />
<p>Tim, and Tony, your comments pushed me in the right direction.&#160; My usage of the userdata/userData (Tony seems strange naming but maybe that is your convention) is correct and is:</p>
</p>
<blockquote>
<p><strong>afterComplete:function(){ var theIndex= $(&#39;#list&#39;).getGridParam(&#39;userData&#39;); $("#index").html(theIndex.index);}</strong></p>
</blockquote>
<p>I then put that code in the options for edit, add and delete and the index &#60;div&#62; in the page is updated with a revised number based on the revised grid.&#160; Here is the working example if anyone wants to see it:</p>
</p>
<p><a href="http://billhogsett.com/deadlock/user/login.php" rel="nofollow" target="_blank"><a href="http://billhogsett.com/deadloc" rel="nofollow">http://billhogsett.com/deadloc</a>...../login.php</a></p>
</p>
<p>Use username: demo1</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; password: demo59</p>
</p>
<p>The index will not show until there are 5 golf rounds in the grid and right now there is only 1.&#160; I&#39;ll add others soon.</p>
<p>Thanks for the help.</p>
</p>
<p>Bill<img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /></p></p>
]]></description>
        	        	<pubDate>Fri, 25 Sep 2009 11:28:28 +0300</pubDate>
        </item>
        <item>
        	<title>tony on userdata:Again and Again!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdataagain-and-again#p10141</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdataagain-and-again#p10141</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If yiou call this immediate after the jqGrid - it will not work. Use gridComplete event for this purpose.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Sep 2009 05:35:11 +0300</pubDate>
        </item>
        <item>
        	<title>tim on userdata:Again and Again!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdataagain-and-again#p10095</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdataagain-and-again#p10095</guid>
        	        	<description><![CDATA[<p>Whats is the event you are using to call the function ?</p>
<p>tim</p>
]]></description>
        	        	<pubDate>Thu, 24 Sep 2009 15:35:15 +0300</pubDate>
        </item>
        <item>
        	<title>bhogsett on userdata:Again and Again!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/userdataagain-and-again#p10075</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/userdataagain-and-again#p10075</guid>
        	        	<description><![CDATA[<p>I think of myself as a decent amateur programmer.&#160; I have done a good bit in php and perl.&#160; My experience is that whenever I venture into some other language I end up having frustrating problems that others have had also.</p>
<p>In looking through the posts on this forum, I see lots of help and lots of repeating questions from newbies like me.&#160; Sorry.</p>
<p>I want to access userdata and put it in a &#60;div&#62;.&#160; Right now I just want to get the data into an alert.</p>
<p>I am using xml to feed the data and the relevant portion (I think) looks like this:</p>
<p>&#60;rows&#62;<br />&#60;page/&#62;<br />&#60;total&#62;5&#60;/total&#62;<br />&#60;records&#62;49&#60;/records&#62;<br />&#60;userdata name="index"&#62;15.0&#60;/userdata&#62;<br />&#8722;<br />&#60;row id="108"&#62;<br />&#60;cell&#62;10/01/08&#60;/cell&#62;<br />&#60;cell&#62;91&#60;/cell&#62;<br />&#60;cell&#62;67.6&#60;/cell&#62;<br />&#60;cell&#62;111&#60;/cell&#62;<br />&#60;cell&#62;23.8&#60;/cell&#62;<br />&#60;cell&#62;Capitol Hill--The Senator&#60;/cell&#62;<br />&#60;cell&#62;White&#60;/cell&#62;<br />&#60;cell/&#62;<br />&#60;/row&#62;</p>
<p>With the row information repeating</p>
<p>In my grid I have this:</p>
<p>var hi = $(&#39;#list&#39;).getGridParam(&#39;userData&#39;); alert(hi.index);</p>
<p>The alert pops when the page is loaded and contains "undefined" and nothing else.</p>
<p>firebug reports:</p>
<p><a class="errorSource a11yFocus " target="_blank">$t is undefined</a></p>
<p><a class="errorSource a11yFocus " target="_blank">(function($){$.jgrid=$.jgrid&#124;&#124;{};$.exten...urn}return c.p.userData[b]}})})(jQuery);</a></p>
</p>
<p>I have looked at the docs here:</p>
<p><a href="http://www.secondpersonplural.ca/jqgriddocs/_2ej16ksnu.htm" rel="nofollow" target="_blank">http://www.secondpersonplural.ca/jqgriddocs/_2ej16ksnu.htm</a></p>
</p>
<p>And earlier messages on this forum (including the earlier&#160; userdata: once again thread)</p>
<p>I am not sure if the xml and javascript shoud be userdata or userData or even if the capitlazation matters.&#160; Maybe the:</p>
<p>var hi = $(&#39;#list&#39;).getGridParam(&#39;userData&#39;); alert(hi.index);</p>
<p>needs to be defined as a function itself.</p>
<p>Help please.</p>
</p>
<p>Bill</p></p>
]]></description>
        	        	<pubDate>Thu, 24 Sep 2009 06:52:43 +0300</pubDate>
        </item>
</channel>
</rss>