<?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: jqGrid + DWR</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-dwr</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/jqgrid-dwr/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on jqGrid + DWR</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-dwr#p5548</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-dwr#p5548</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you obtain a string from DWR you can use eval to convert this to object.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 24 Mar 2009 02:38:42 +0200</pubDate>
        </item>
        <item>
        	<title>evaristo on jqGrid + DWR</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-dwr#p5525</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-dwr#p5525</guid>
        	        	<description><![CDATA[<p>Hi, I&#39;m using DWR to obtain the data. In the callback function I have all the results and I need to reload the grid.</p>
<p>I have something like this.</p>
<p><strong><span style="text-decoration: underline;">DWR Callback:</span></strong></p>
<p>&#160;var data = new Array(result.length);</p>
<p>&#160;for (var i=0; i&#60;result.length; i++) { // In result I have all the data<br />&#160;&#160; var row = new Array()&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160; row[0] = result[i].xx;<br />&#160;&#160; row[1] = result[i].yy;<br />&#160;&#160; row[N] = result[i].zz;<br />&#160;&#160; data[i] = row;<br />&#160; }</p>
<p>&#160; reloadGrid(data);</p>
<p><span style="text-decoration: underline;"><strong>And in the reload function I need something like this:</strong></span></p>
<p>function reloadGrid(data) {</p>
<p>&#160;for(var i=0;i&#60;=data.length;i++) jQuery(&#8221;#list&#8221;).addRowData(i+1,data[i]); </p>
<p>}</p>
<p>I need to obtain a parameter like this one:</p>
<p>var data = [ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {p1:"3456430",p2:"askdjas asdkj",p3:"T"}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {p1:"1234550",p2:"askdjas asdkj",p3:"T"}<br />&#160;&#160;&#160; &#160;&#160;&#160; ];</p>
<p>But the problem is that I receive the results from DWR and I must build an object with all the data.</p>
<p>How can I build the array??</p>
<p>Thank you very much!</p>
]]></description>
        	        	<pubDate>Mon, 23 Mar 2009 10:13:26 +0200</pubDate>
        </item>
</channel>
</rss>