<?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: Using 'userDataOnFooter' with xml Data.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/using-userdataonfooter-with-xml-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/using-userdataonfooter-with-xml-data/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Using 'userDataOnFooter' with xml Data.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-userdataonfooter-with-xml-data#p19729</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-userdataonfooter-with-xml-data#p19729</guid>
        	        	<description><![CDATA[<p>You have to fill the information, which you will see in the footer, in the userdata. The userdata&#160;must be the part of data which you send from the server (see /jqgridwiki/doku.php?id=wiki:retrieving_data#user_data&#160;for more information)</p>
<p>Regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sun, 12 Sep 2010 12:20:10 +0300</pubDate>
        </item>
        <item>
        	<title>neophitus on Using 'userDataOnFooter' with xml Data.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-userdataonfooter-with-xml-data#p19727</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-userdataonfooter-with-xml-data#p19727</guid>
        	        	<description><![CDATA[<p>Its possible to set the property:</p>
<p>userDataOnFooter</p>
<p>without use an json data source? I have an entire application with all xml data, and i want to use that to sumarize my coluns.</p>
</p>
<p>As Folows:</p>
</p>
<p>&#160;&#160;&#160; jQuery().ready(function (){ <br />&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#pesq2&#39;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;ajaxList.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype:&#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Pago&#39;, &#39;Cod&#39;,&#39;DocNo&#39;,&#39;Vcto&#39;,&#39;Descricao&#39;,&#39;Plano de Contas&#39;,&#39;Entrada&#39;,&#39;Saida&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Liquidado&#39;,index:&#39;Liquidado&#39;, width:38, align:&#39;center&#39;,formatter:&#39;checkbox&#39;}&#160;&#160; &#160;,&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Cod&#39;,index:&#39;Cod&#39;, width:75},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;DocNo&#39;,index:&#39;DocNo&#39;, width:75},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Vcto&#39;,index:&#39;Vcto&#39;, width:85, formatter:&#39;date&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Descricao&#39;,index:&#39;Descricao&#39;, width:250},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Plano&#39;,index:&#39;Plano&#39;, width:80},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Entrada&#39;,index:&#39;Entrada&#39;,formatter:&#39;currency&#39;, align:&#39;right&#39;,width:50},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Saida&#39;,index:&#39;Saida&#39;,formatter:&#39;currency&#39;, align:&#39;right&#39;, width:50}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// altRows:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;toolbar:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum:10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList:[10,20,30,50],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;autowidth: true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height:&#39;100%&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager:&#39;#bpesq2&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname:&#39;Vcto&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder:&#39;asc&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption:&#39;&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;footerrow : true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;userDataOnFooter : true<br />&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;});</p>
<p>My PHP File:</p>
</p>
<p>&#160;&#160;&#160; $et = "&#62;";<br />&#160; &#160;&#160; &#160;echo "&#60;?xml version=&#39;1.0&#39; encoding=&#39;iso-8859-1&#39;?$et\n";<br />&#160;&#160; &#160;echo "&#60;rows&#62;";<br />&#160;&#160; &#160;echo "&#60;page&#62;".$page."&#60;/page&#62;";<br />&#160;&#160; &#160;echo "&#60;total&#62;".$total_pages."&#60;/total&#62;";<br />&#160;&#160; &#160;echo "&#60;records&#62;".$count."&#60;/records&#62;";</p>
<p>&#160;&#160; &#160;// n&#227;o se esque&#231;a de colocar os dados em texto no CDATA<br />&#160;&#160; &#160;$TotEnt = 0;<br />&#160;&#160; &#160;$TotSai = 0;<br />&#160;&#160; &#160;while($row = $RS2-&#62;fetch()) {<br />&#160;&#160; &#160;&#160;&#160; &#160;// Somatorio:<br />&#160;&#160; &#160;&#160;&#160; &#160;$TotEnt += $row[&#39;Entrada&#39;];<br />&#160;&#160; &#160;&#160;&#160; &#160;$TotSai += $row[&#39;Saida&#39;];<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;row id=&#39;". $row[&#39;Cod&#39;]."&#39;&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;cell&#62;&#60;![CDATA[". $row[&#39;Liquidado&#39;]."]]&#62;&#60;/cell&#62;";&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;cell&#62;&#60;![CDATA[". $row[&#39;Cod&#39;]."]]&#62;&#60;/cell&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;cell&#62;&#60;![CDATA[". $row[&#39;DocNo&#39;]."]]&#62;&#60;/cell&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;cell&#62;&#60;![CDATA[". $row[&#39;Vcto&#39;]."]]&#62;&#60;/cell&#62;";&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;cell&#62;&#60;![CDATA[". $row[&#39;Descricao&#39;]."]]&#62;&#60;/cell&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;cell&#62;&#60;![CDATA[". $row[&#39;Plano&#39;]."]]&#62;&#60;/cell&#62;";&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;cell&#62;&#60;![CDATA[". $row[&#39;Entrada&#39;]."]]&#62;&#60;/cell&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;cell&#62;&#60;![CDATA[". $row[&#39;Saida&#39;]."]]&#62;&#60;/cell&#62;";<br />&#160;&#160; &#160;&#160;&#160; &#160;echo "&#60;/row&#62;";<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;echo "&#60;/rows&#62;";<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;//fechando o banco de dados<br />&#160;&#160; &#160;$DB = null;</p>
</p>
<p>Can Anyone help?</p>
<p>Thx in advance!</p></p>
]]></description>
        	        	<pubDate>Sun, 12 Sep 2010 06:24:23 +0300</pubDate>
        </item>
</channel>
</rss>