<?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: how can I have the total (footerData)?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata</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/how-can-i-have-the-total-footerdata/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>aznan on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p18266</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p18266</guid>
        	        	<description><![CDATA[<p>tony and anyone,</p>
<p>&#160;i&#39;m trying to use :</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5880' value='Select Code' data-codeid='sfcode5880' /></p>
<div class='sfcode' id='sfcode5880'>
<p>toolbar: [true,&#34;bottom&#34;]</p>
<p>var udata = $(&#34;#toolbar2&#34;).jqGrid(&#39;getUserData&#39;);</p>
<p>$(&#34;#t_toolbar2&#34;).css(&#34;text-align&#34;,&#34;right&#34;).html(&#34;Totals Amount:&#34;+udata.tamount+&#34; Tax: &#34;+udata.ttax+&#34; Total: &#34;+udata.ttotal+ &#34;&#38;nbsp;&#38;nbsp;&#38;nbsp;&#34;);</p>
</div>
<p>but &#160;I cant seem to get the userdata value from json data</p>
<p>for example &#160; i wish to change tamount in the demo to cur_amount.. in my apps...</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6444' value='Select Code' data-codeid='sfcode6444' /></p>
<div class='sfcode' id='sfcode6444'>$responce-&#62;userdata[&#39;cur_amount&#39;] = $amttot; &#160;</div>
<p>&#38; next question instead of using the toolbar menthod, can userDataOnFooter be style with css also.. &#160;cause i wanted it to stand out from other data... example would be nice..</p>
<p>tq</p></p>
]]></description>
        	        	<pubDate>Tue, 29 Jun 2010 12:50:10 +0300</pubDate>
        </item>
        <item>
        	<title>tony on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14472</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14472</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is a simple - from where comes this</p>
<p>$responce-&#62;userdata[&#39;cur_amount&#39;] = $amttot; <br />$responce-&#62;userdata[&#39;int_reference&#39;] = &#39;Totals:&#39;;</p>
<p>Then try to recalculate <strong>$amttot</strong> for the entry column.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 01 Feb 2010 13:10:44 +0200</pubDate>
        </item>
        <item>
        	<title>aznan on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14463</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14463</guid>
        	        	<description><![CDATA[<p>ahh.. figure out myself but dunno whether right or wrong... I created a new sql.. and copy the while operation.. and delete here and there... thanxxx...</p>
]]></description>
        	        	<pubDate>Mon, 01 Feb 2010 12:21:44 +0200</pubDate>
        </item>
        <item>
        	<title>aznan on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14460</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14460</guid>
        	        	<description><![CDATA[<p>can u point to which part of my code above need to be change tony (which part says that in should return by page)</p>
<p>or is it inside somewhere else.. which part of my php??</p>
<p>.. or can u show me some sample.. the problem also persist when i try "true scrolling row".. or am i doing it wrongly.. ??</p>
</p>
<p>sorry for asking too muchh..</p>
]]></description>
        	        	<pubDate>Mon, 01 Feb 2010 10:51:47 +0200</pubDate>
        </item>
        <item>
        	<title>tony on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14454</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14454</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>In userdata you should put the total calculations and not per page. Change your server side script to do this</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 01 Feb 2010 10:18:44 +0200</pubDate>
        </item>
        <item>
        	<title>aznan on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14423</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14423</guid>
        	        	<description><![CDATA[<p>correct me if I&#39;m wrong..</p>
<p>I manage to get the footerrow data working.. but my problems is i can only view the total for the active grid.. meaning:</p>
<p>currently i hv six(6) pages of data.. and each page will only show the total for each page&#8230;</p>
<p>how can i show the GRAND total for the whole six page to be viewed as the total in every page??</p>
<p>which part of the code should i edit...</p>
<p>this is the constructing json data code..</p>
</p>
<p>$responce-&#62;page = $page;<br />$responce-&#62;total = $total_pages;<br />$responce-&#62;records = $count;<br />$i=0;<br />while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;$amttot += $row[cur_amount]; </p>
<p>&#160;&#160; &#160;<br />&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;id&#39;]=$row[int_claimdetailid];<br />&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;cell&#39;]=array($row[int_claimdetailid],$row[txt_item],$row[int_claimid],$row[dt_date],$row[int_reference],$row[cur_amount],$row[int_siteid],$row[int_accid]);<br />&#160;&#160;&#160; $i++;<br />}<br />$responce-&#62;userdata[&#39;cur_amount&#39;] = $amttot; <br />$responce-&#62;userdata[&#39;int_reference&#39;] = &#39;Totals:&#39;;</p>
</p>
<p>help please anyone&#8230;</p>
</p>
<p>newbie..</p>
]]></description>
        	        	<pubDate>Mon, 01 Feb 2010 06:43:42 +0200</pubDate>
        </item>
        <item>
        	<title>a6andrea on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14298</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14298</guid>
        	        	<description><![CDATA[<p><strong>@ tony</strong> and <strong>newperson</strong> :</p>
<p>Thank You very much !!!!<br />Now I have my grid with the total at the footerrow !!</p>
<p>Really, Thank You a lot !!!</p>
<p>Andrea</p>
]]></description>
        	        	<pubDate>Tue, 26 Jan 2010 22:53:33 +0200</pubDate>
        </item>
        <item>
        	<title>newperson on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14224</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14224</guid>
        	        	<description><![CDATA[<p>Andrea you are doing it wrong. Let me see if I can help.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7589' value='Select Code' data-codeid='sfcode7589' /></p>
<div class='sfcode' id='sfcode7589'>
<p>&#160;&#160;$result = mysql_query("SELECT COUNT(DISTINCT store_number) AS storecount from store_item_monitor);<br />&#160;&#160;$row = mysql_fetch_array($result,MYSQL_ASSOC);<br />&#160;&#160;$storecount = $row[&#39;storecount&#39;];<br />&#160;&#160;$responce-&#62;stores = $storecount;</p>
<p>//&#39;Store&#39; is the name&#160;in your&#160;ColModel&#160;below syntax appends&#160;the&#160;results of the mysql syntax as a footer.<br />&#160;&#160;$responce-&#62;userdata[&#39;Store&#39;] = &#39;Total:&#39;.$storecount;</p>
</div>
<p><a href="http://gyazo.com/d5bf7889b1fb673e9c83d7541407cb4c.png" rel="nofollow" target="_blank">http://gyazo.com/d5bf7889b1fb673e9c83d7541407cb4c.png</a></p>
<p>Here you can view what my grid looks like and it should give you a good idea on what to do next with the information I gave you which is specific to my grid =)</p>
<p>Enjoy!</p>
]]></description>
        	        	<pubDate>Mon, 25 Jan 2010 00:23:11 +0200</pubDate>
        </item>
        <item>
        	<title>tony on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14202</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14202</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Where is the value for $piesum;</p>
<p>Just test this way:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7537' value='Select Code' data-codeid='sfcode7537' /></p>
<div class='sfcode' id='sfcode7537'>
<p>$responce-&#62;userdata[&#39;pie&#39;] = 1234;</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 24 Jan 2010 18:01:48 +0200</pubDate>
        </item>
        <item>
        	<title>a6andrea on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14195</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14195</guid>
        	        	<description><![CDATA[<p>up !</p>
]]></description>
        	        	<pubDate>Sun, 24 Jan 2010 15:24:37 +0200</pubDate>
        </item>
        <item>
        	<title>a6andrea on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14177</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14177</guid>
        	        	<description><![CDATA[<p>This is the script in the file html:</p>
</p>
<p>&#60;script type="text/javascript"&#62;<br />jQuery(document).ready(function(){ <br />&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160; url:&#39;example.php&#39;,<br />&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; colNames: [&#39;cod - desc&#39;, &#39;pie&#39;, &#39;p.v. ie&#39;, &#39;fattura vendita&#39;, &#39;p&#39;, &#39;i&#39;, &#39;data fattura&#39;, &#39;note&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;cod&#39;, index:&#39;cod&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;pie&#39;, index:&#39;pie&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;pvie&#39;, index:&#39;pvie&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;fattura_vendita&#39;, index:&#39;fattura_vendita&#39;, sortable: true, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;p&#39;, index:&#39;p&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;v&#39;, index:&#39;v&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;data_fattura&#39;, index:&#39;data_fattura&#39;, sortable: true, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;note&#39;, index:&#39;note&#39;, sortable: false, resizable: false}<br />&#160;&#160;&#160; ],</p>
<p>&#160;&#160;&#160; footerrow: true,<br />&#160;&#160;&#160; userDataOnFooter: true,<br />&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; sortname: &#39;data_fattura&#39;,<br />&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160; height: &#39;100%&#39;,<br />&#160;&#160;&#160; caption: &#39;La mia tabella&#39;<br />&#160; });<br />});<br />jQuery("#list").footerData(&#39;set&#39;,{cod:&#39;Total&#39;,pie:sum});<br />&#60;/script&#62;</p>
<p>and this is the file example.php:</p>
</p>
<p>&#60;?php <br />//include the information needed for the connection to MySQL data base server. <br />// we store here username, database and password <br />include("_conn.db.inc.php");<br />&#160;<br />// to the url parameter are added 4 parameters as described in colModel<br />// we should get these parameters to construct the needed query<br />// Since we specify in the options of the grid that we will use a GET method <br />// we should use the appropriate command to obtain the parameters. <br />// In our case this is $_GET. If we specify that we want to use post <br />// we should use $_POST. Maybe the better way is to use $_REQUEST, which<br />// contain both the GET and POST variables. For more information refer to php documentation.<br />// Get the requested page. By default grid sets this to 1. <br />$page = $_GET[&#39;page&#39;]; <br />&#160;<br />// get how many rows we want to have into the grid - rowNum parameter in the grid <br />$limit = $_GET[&#39;rows&#39;]; <br />&#160;<br />// get index row - i.e. user click to sort. At first time sortname parameter -<br />// after that the index from colModel <br />$sidx = $_GET[&#39;sidx&#39;]; <br />&#160;<br />// sorting order - at first time sortorder <br />$sord = $_GET[&#39;sord&#39;]; <br />&#160;<br />// if we not pass at first time index use the first column for the index or what you want<br />if(!$sidx) $sidx =1; <br />&#160;<br />// calculate the number of rows for the query. We need this for paging the result <br />$sql="SELECT COUNT(*) AS count FROM articoli";<br />$result = mysql_query($sql,$db) or die(mysql_error()); <br />$row = mysql_fetch_array($result,MYSQL_ASSOC); <br />$count = $row[&#39;count&#39;]; <br />&#160;<br />// calculate the total pages for the query <br />if( $count &#62; 0 &#38;&#38; $limit &#62; 0) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $total_pages = ceil($count/$limit); <br />} else { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $total_pages = 0; <br />} <br />&#160;<br />// if for some reasons the requested page is greater than the total <br />// set the requested page to total page <br />if ($page &#62; $total_pages) $page=$total_pages;<br />&#160;<br />// calculate the starting position of the rows <br />$start = $limit*$page - $limit;<br />&#160;<br />// if for some reasons start position is negative set it to 0 <br />// typical case is that the user type 0 for the requested page <br />if($start &#60;0) $start = 0; <br />&#160;<br />// the actual query for the grid data <br />$SQL = "SELECT * , date_format(data_fattura, &#39;%d-%m-%Y&#39;) AS data_fattura_l FROM articoli ORDER BY $sidx $sord LIMIT $start , $limit"; <br />$result = mysql_query( $SQL ) or die("Couldn&#39;t execute query.".mysql_error()); <br />&#160;<br />$responce-&#62;page = $page;<br />$responce-&#62;total = $total_pages;<br />$responce-&#62;records = $count;<br />$responce-&#62;userdata[&#39;pie&#39;] = $piesum;<br />$i=0;</p>
<p>while($row = mysql_fetch_array($result,MYSQL_ASSOC))<br />{<br />&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;id&#39;]=$row[id];<br />&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;cell&#39;]=array("$row[codice] - $row[descrizione]",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[prezzoie],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[prezzoiev],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[fattura_vendita],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[id_pagato],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[id_incassato],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[data_fattura_l],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[note]);<br />&#160;&#160;&#160; $i++;<br />}<br />echo json_encode($responce); <br />?&#62;</p>
</p>
<p>but the total isn&#39;t print...<br />Where is the error?</p>
<p>Thanks for all !</p>
<p>Andrea</p>
]]></description>
        	        	<pubDate>Fri, 22 Jan 2010 16:27:49 +0200</pubDate>
        </item>
        <item>
        	<title>Jayesh on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14094</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14094</guid>
        	        	<description><![CDATA[</p>
<p><span style="font-size: x-small;"></span></p>
<p>use like below</p>
</p>
<p><span style="font-size: x-small;">jQuery(&#8221;#list&#8221;).footerData(&#39;set&#39;,{cod:&#39;Total&#39;,pie:sum});&#160; -- where sum is a variable holding the total</span></p>
]]></description>
        	        	<pubDate>Thu, 21 Jan 2010 04:28:16 +0200</pubDate>
        </item>
        <item>
        	<title>a6andrea on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14087</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14087</guid>
        	        	<description><![CDATA[<p>this the last part of expamle.php:</p>
<p>&#60;?php</p>
<p>....</p>
<p>...</p>
<p>// the actual query for the grid data <br />$SQL = "SELECT * , date_format(data_fattura, &#39;%d-%m-%Y&#39;) AS data_fattura_l FROM articoli ORDER BY $sidx $sord LIMIT $start , $limit"; <br />$result = mysql_query( $SQL ) or die("Couldn&#39;t execute query.".mysql_error()); <br />&#160;<br />$responce-&#62;page = $page;<br />$responce-&#62;total = $total_pages;<br />$responce-&#62;records = $count;<br /><strong>$responce-&#62;userdata[&#39;pie&#39;] = $piesum;<br /></strong>$i=0;</p>
<p>while($row = mysql_fetch_array($result,MYSQL_ASSOC))<br />{<br />&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;id&#39;]=$row[id];<br />&#160;&#160;&#160; $responce-&#62;rows[$i][&#39;cell&#39;]=array("$row[codice] - $row[descrizione]",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[prezzoie],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[prezzoiev],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[fattura_vendita],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[id_pagato],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[id_incassato],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[data_fattura_l],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; $row[note]);<br />&#160;&#160;&#160; $i++;<br />}<br />echo json_encode($responce);</p>
<p>?&#62;</p>
<p>It doesn&#39;t work... sorry but I&#39;m a news user can you explain me?</p>
<p>thanks a lot!</p>
<p>Andrea</p>
]]></description>
        	        	<pubDate>Wed, 20 Jan 2010 21:37:25 +0200</pubDate>
        </item>
        <item>
        	<title>jogep on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14077</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14077</guid>
        	        	<description><![CDATA[<p>in your json result you must return an array userdata.</p>
</p>
<p>$responce-&#62;userdata[&#39;pie&#39;] = $piesum;</p>
<p>json_encode($responce);</p>
]]></description>
        	        	<pubDate>Wed, 20 Jan 2010 11:47:08 +0200</pubDate>
        </item>
        <item>
        	<title>a6andrea on how can I have the total (footerData)?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14066</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-have-the-total-footerdata#p14066</guid>
        	        	<description><![CDATA[<p>Hello to everyone, this is my code:</p>
</p>
<p>jQuery(document).ready(function(){ <br />&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160; url:&#39;example.php&#39;,<br />&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; colNames: [&#39;cod&#39;, &#39;pie&#39;, &#39;p.v. ie&#39;, &#39;fattura vendita&#39;, &#39;p&#39;, &#39;i&#39;, &#39;data fattura&#39;, &#39;note&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160; {name:&#39;cod&#39;, index:&#39;cod&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;pie&#39;, index:&#39;pie&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;pvie&#39;, index:&#39;pvie&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;fattura_vendita&#39;, index:&#39;fattura_vendita&#39;, sortable: true, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;p&#39;, index:&#39;p&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;v&#39;, index:&#39;v&#39;, sortable: false, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;data_fattura&#39;, index:&#39;data_fattura&#39;, sortable: true, resizable: false},<br />&#160;&#160;&#160; &#160; {name:&#39;note&#39;, index:&#39;note&#39;, sortable: false, resizable: false}<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; footerrow: true,<br />&#160;&#160;&#160; userDataOnFooter: true,<br />&#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; sortname: &#39;data_fattura&#39;,<br />&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160; height: &#39;100%&#39;,<br />&#160;&#160;&#160; caption: &#39;La mia tabella&#39;<br />&#160; }); <br />});</p>
</p>
<p>I want to have the SUM of the column "pie": the word "total" at the footer of "cod" column, and the SUM of "pie" at the footer of "pie" column</p>
<p>How i have to use the method footerData ??</p>
</p>
<p>jQuery("#list").jqGrid(&#39;footerData&#39;, set, ........);</p>
</p>
<p>Sorry for my english and thank You every one for help!!</p>
<p>Andrea</p>
]]></description>
        	        	<pubDate>Tue, 19 Jan 2010 23:51:57 +0200</pubDate>
        </item>
</channel>
</rss>