<?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: Retrieving Row Data</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-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/retrieving-row-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Pete on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1895</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1895</guid>
        	        	<description><![CDATA[<p>LOL!&#160; Thanks!&#160; I can&#39;t believe it was SO simple and I must have looked at that code a thousand times!&#160; I had even cut and pasted that same code so eveb my tests and examples didn&#39;t work.</p>
<p>A second set of eyes is a good thing.&#160; Thanks for taking the time!</p>
<p>This is a great tool!&#160;</p>
<p>Pete</p>
]]></description>
        	        	<pubDate>Fri, 05 Sep 2008 09:41:55 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1888</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1888</guid>
        	        	<description><![CDATA[<p>Hello there is a typo error here:</p>
<p>You write:</p>
<p>selRow = $(&#39;#abs<strong>L</strong>ist&#39;).getRowData(selRecords[j]);</p>
<p>IMHO it should be</p>
<p>selRow = $(&#39;#abslist&#39;).getRowData(selRecords[j]);</p>
<p>Correcting this work as expected.</p>
<p>Regrds</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 05 Sep 2008 06:59:33 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1881</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1881</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I am not sure what you mean by "development" version of jqGrid but I did create a demo servlet that should allow you to test this.&#160; Actually, you could rewrite the url to pull the same json data from a php method and run this in PHP if you wanted to.&#160; The json data is posted here along with my colModel:</p>
<p><a href="http://www.petesworkshop.com/jqgrid-problem.html" rel="nofollow" target="_blank"><a href="http://www.petesworkshop.com/j" rel="nofollow">http://www.petesworkshop.com/j</a>.....oblem.html</a></p>
<p>All I did to prepare this test was to take the json data and return it as a string n the url "call" to the server.&#160;</p>
<p>The link to th test site is here:</p>
<p><a href="http://web5250.com/asaap-v/IV" rel="nofollow" target="_blank">http://web5250.com/asaap-v/IV</a></p>
<p>Click on "start" and then a page with "List Absences" and "Display Selected Rows" buttons will display.&#160; Click on "List Absences" and it will populate the grid.&#160; Select a couple of rows and it will display the row number and then it *should* display the returned row information but it only displays "undefined" for each element in the row object.</p>
<p>I hope this will help.</p></p>
]]></description>
        	        	<pubDate>Thu, 04 Sep 2008 13:00:37 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1875</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1875</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If poosible could you please prepare a test page for this. If you can do this</p>
<p>please include the development version of jqGrid.</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 04 Sep 2008 01:58:07 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1871</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1871</guid>
        	        	<description><![CDATA[<p>Sorry about the multiple posts.&#160; I can&#39;t seem to add another reply to the thread!</p>
<p>I have a page that displays the json data and the colModel.&#160; It might help you figure out the problem:</p>
<p><a href="http://www.petesworkshop.com/jqgrid-problem.html" target="_blank"><a href="http://www.petesworkshop.com/j" rel="nofollow">http://www.petesworkshop.com/j</a>.....oblem.html</a></p></p>
]]></description>
        	        	<pubDate>Wed, 03 Sep 2008 18:50:55 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1870</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1870</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>I think that the problem is here:</p>
<p>var selRecords&#160; = new Array();</p>
<p>You should not define the array. jqGrid return empty array if there are&#160;</p>
<p>no selected rows. You simple should check the values of this array.</p>
<p>What you have here? Are there any valid values from the selected rows?</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
]]></description>
        	        	<pubDate>Wed, 03 Sep 2008 18:23:48 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1869</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1869</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>I think that the problem is here:</p>
<p>var selRecords&#160; = new Array();</p>
<p>You should not define the array. jqGrid return empty array if there are&#160;</p>
<p>no selected rows. You simple should check the values of this array.</p>
<p>What you have here? Are there any valid values from the selected rows?</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
]]></description>
        	        	<pubDate>Wed, 03 Sep 2008 17:52:19 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1866</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1866</guid>
        	        	<description><![CDATA[<p>Thanks Tony.&#160; I originally had the array defined as just var but specifically cast it to an Array hoping to fix the problem (which it didn&#39;t).</p>
<p>Yes.&#160; The selRecords array does have the correct values for the selected records.&#160; There are 4 records displayed and I selected record 2 and 3. The selRecords array has [2],[3] as values.</p>
<p>I took some screen shots of the Firebug and Venkman debugger showing the values and the &#39;void&#39; value of selRow object.&#160; You can find the three screen shots here:</p>
<p><a href="http://www.petesworkshop.com/images/jqgrid-1.jpg" rel="nofollow" target="_blank">http://www.petesworkshop.com/images/jqgrid-1.jpg</a></p>
<p><a href="http://www.petesworkshop.com/images/jqgrid-2.jpg" rel="nofollow" target="_blank">http://www.petesworkshop.com/images/jqgrid-2.jpg</a></p>
<p><a href="http://www.petesworkshop.com/images/jqgrid-3.jpg" rel="nofollow" target="_blank">http://www.petesworkshop.com/images/jqgrid-3.jpg</a></p>
<p>I am not sure why jqgrid is returning an object that is void (undefined) I don&#39;t know much about Javascript but it almost seems like it doesn&#39;t know what the object is that is being returned by getRowData.</p>
<p>I hope this helps.&#160; I am stumped.</p></p>
]]></description>
        	        	<pubDate>Wed, 03 Sep 2008 09:58:09 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1861</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1861</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I think that the problem is here:</p>
<p>var selRecords&#160; = new Array();</p>
<p>You should not define the array. jqGrid return empty array if there are&#160;</p>
<p>no selected rows. You simple should check the values of this array.</p>
<p>What you have here? Are there any valid values from the selected rows?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 03 Sep 2008 04:29:48 +0300</pubDate>
        </item>
        <item>
        	<title>Pete on Retrieving Row Data</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1858</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/retrieving-row-data#p1858</guid>
        	        	<description><![CDATA[<p>I have some Javascript code that iterates through an array of selected records and, in order to pass the selected record data to my servlet as a parameter I need to parse the selected data into a string.&#160; However, when I access the row data the data comes back as "undefined".&#160; The code is nearly identical to some code I saw in an example.&#160; I don&#39;t know what I am doing wrong.&#160; The relevant code is:</p>
<p>var selRow;<br />var selRecords&#160; = new Array();<br />var passedArray = new Array();<br />var i,j;</p>
<p>selRecords = $("#abslist").getGridParam(&#39;selarrrow&#39;);<br />i = selRecords.length;<br />if(i&#62;0)<br />{<br />&#160;&#160; &#160;for(j=0;j&#60;=i;j++){<br />&#160;&#160;&#160; selRow = $("#absList").getRowData(selRecords[j]);<br />&#160; &#160; passedArray[j] = selRow.absId + "," + selRow.absDate;<br />}</p>
<p>The selRecords variable has an array of selected record ID&#39;s.&#160; The selRow variable has a type "object" which, in debug, has no properties.</p>
<p>The passedArray variable ends up having the the value [undefined,undefined,undefined,undefined]</p>
<p>Relevant portion of the colModel:</p>
<p>colModel:[<br />&#160;&#160; {name:&#39;absId&#39;,index:&#39;absId&#39;, width:80},</p>
<p>&#160;&#160; {name:&#39;absDate&#39;,index:&#39;absDate&#39;, width:90}</p>
<p>]</p>
<p>What should I look for?&#160; Both Firebug and the Venkman debugger display "No properties" when I examine the value of the row data object in debug mode.</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Tue, 02 Sep 2008 10:59:32 +0300</pubDate>
        </item>
</channel>
</rss>