<?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: Summary footer with xml format</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/summary-footer-with-xml-format</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/summary-footer-with-xml-format/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>todd_b on Summary footer with xml format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/summary-footer-with-xml-format#p7636</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/summary-footer-with-xml-format#p7636</guid>
        	        	<description><![CDATA[<p>You will need to add the summary row data as user data in the following format.</p>
<p>Note: XML for adjacent tree node plus summary row</p>
</p>
<p><code>&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;<br />&#60;rows&#62;<br />&#160;&#160;&#160;&#160; &#60;page&#62;1&#60;/page&#62;<br />&#160;&#160;&#160;&#160; &#60;total&#62;1&#60;/total&#62;<br />&#160;&#160;&#160;&#160; &#60;records&#62;27&#60;/records&#62;<br />&#160;&#160;&#160;&#160; <strong><span style="color: #008000;">&#60;userdata name="aaaa"&#62;total&#60;/userdata&#62;&#160; # name = target column&#39;s name<br />&#160;&#160;&#160;&#160; &#60;userdata name="bbbb"&#62;1b2b3b&#60;/userdata&#62;<br />&#160;&#160;&#160;&#160; &#60;userdata name="cccc"&#62;1c2c3c&#60;/userdata&#62;<br />&#160;&#160;&#160;&#160; &#60;userdata name="dddd"&#62;1d2d3d&#60;/userdata&#62;</span></strong><br />&#160;&#160;&#160;&#160; &#60;row&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1&#60;/cell&#62; # row id <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1a&#60;/cell&#62; # expanding column<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1b&#60;/cell&#62; # column 2<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1c&#60;/cell&#62; # column 3<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1d&#60;/cell&#62; # column 4<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;0&#60;/cell&#62;&#160;&#160;&#160;&#160;&#160; # node level 0<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;NULL&#60;/cell&#62;&#160;&#160; # parent row id<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;false&#60;/cell&#62;&#160; # is this a leaf?<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;false&#60;/cell&#62;&#160; # expand?<br />&#160;&#160;&#160;&#160; &#60;/row&#62;&#160;&#160; </code></p>
<p>&#160;&#160;&#160;&#160; &#60;row&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2&#60;/cell&#62; # row id <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2a&#60;/cell&#62; # expanding col<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2b&#60;/cell&#62; # column 2<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2c&#60;/cell&#62; # column 3<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2d&#60;/cell&#62; # column 4<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;0&#60;/cell&#62;&#160;&#160;&#160;&#160;&#160; # node level 1<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1&#60;/cell&#62;&#160;&#160;&#160;&#160;&#160; # parent row id<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;true&#60;/cell&#62;&#160;&#160; # is this a leaf?<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;false&#60;/cell&#62;&#160; # expand?<br />&#160;&#160;&#160;&#160; &#60;/row&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p>
<p>&#160;&#160;&#160;&#160; &#60;row&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;3&#60;/cell&#62; # row id <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;3a&#60;/cell&#62; # expanding col<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;3b&#60;/cell&#62; # column 2<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;3c&#60;/cell&#62; # column 3<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;3d&#60;/cell&#62; # column 4<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;0&#60;/cell&#62;&#160;&#160;&#160;&#160;&#160; # node level 1<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;1&#60;/cell&#62;&#160;&#160;&#160;&#160;&#160; # parent row id<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;true&#60;/cell&#62;&#160;&#160; # is this a leaf?<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;false&#60;/cell&#62;&#160; # expand?<br />&#160;&#160;&#160;&#160; &#60;/row&#62; <br />&#60;/rows&#62; </p>
]]></description>
        	        	<pubDate>Thu, 02 Jul 2009 15:25:08 +0300</pubDate>
        </item>
        <item>
        	<title>KiMbOoO on Summary footer with xml format</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/summary-footer-with-xml-format#p7346</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/summary-footer-with-xml-format#p7346</guid>
        	        	<description><![CDATA[<p>Hi !</p>
<p>I want use the summary footer (laste version of jqgrid 3.5 build 5) with server-side php (xml format) but userdata for the summary footer are not in my grid, only the footer table !</p>
<p>somebody can help me ??</p>
<p>&#8212;-</p>
<p>&#160;&#160;&#160; $(document).ready(function() {<br />&#160;&#160;&#160; //Premier Tableau : Consultation des d&#233;clarations<br />&#160;&#160;&#160; $(&#39;#list&#39;).jqGrid({ <br />&#160;&#160;&#160; url:&#39;../library/Request/recordsdeclaration.php?id=&#60;?php echo $this-&#62;escape($this-&#62;iduser);?&#62;&#39;, <br />&#160;&#160;&#160; datatype: &#39;xml&#39;,&#160; <br />&#160;&#160;&#160; colNames:[&#39;Annee&#39;, &#39;Date&#39;,&#39;Heure debut&#39;,&#39;Heure Fin&#39;,&#39;Nbre Heures&#39;,&#39;Taches&#39;,&#39;Projets&#39;,&#39;Saisie le&#39;,&#39;Statut&#39;, &#39;Motif refus&#39;,&#39;PDF&#39;], <br />&#160;&#160;&#160; colModel :[ {name:&#39;annee_hs&#39;, index:&#39;annee_hs&#39;, width:70, align: &#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#160;&#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;date_hs&#39;, index:&#39;date_hs&#39;, width:100, formatter:&#39;date&#39;, align: &#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#160;&#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;heure_d_hs&#39;, index:&#39;heure_d_hs&#39;, width:90, align: &#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#160;&#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;heure_f_hs&#39;, index:&#39;heure_f_hs&#39;, width:90, align: &#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#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;nbre_heure_hs&#39;, index:&#39;nbre_heure_hs&#39;, width:90, align: &#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#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;tache&#39;, index:&#39;tache&#39;, width:90, align: &#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;hidden:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editrules:{edithidden:true},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#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;projet&#39;, index:&#39;projet&#39;, width:90, align: &#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;hidden:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editrules:{edithidden:true},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#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;date_avis_hs&#39;, index:&#39;date_avis_hs&#39;, formatter:&#39;date&#39;, width:90, align:&#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#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;etat_avis_hs&#39;, index:&#39;etat_avis_hs&#39;, width:90, align:&#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#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;motif_refus_hs&#39;, index:&#39;motif_refus_hs&#39;, width:320, align: &#39;center&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editable:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;hidden:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editrules:{edithidden:true},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{readonly:true}<br />&#160;&#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;PDF&#39;, index:&#39;PDF&#39;, width:60, align:&#39;center&#39;}],<br />&#160;&#160;&#160; pager: $(&#39;#pager&#39;), <br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; width:920,<br />&#160;&#160;&#160; height:250,<br />&#160;&#160;&#160; sortname: &#39;id_avis_hs&#39;, <br />&#160;&#160;&#160; sortorder: &#8220;desc&#8221;, <br />&#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160; caption: &#39;&#39;,<br />&#160;&#160;&#160; footerrow : true, <br />&#160;&#160;&#160; userDataOnFooter : true<br />&#160;&#160;&#160; });</p>
<p>&#8212;&#8211;</p>
<p>echo &#8220;&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;&#8221;; <br />echo &#8220;&#60;rows&#62;&#8221;; <br />echo &#8220;&#60;page&#62;&#8221;.$page.&#8221;&#60;/page&#62;&#8221;; <br />echo &#8220;&#60;total&#62;&#8221;.$total_pages.&#8221;&#60;/total&#62;&#8221;; <br />echo &#8220;&#60;records&#62;&#8221;.$count.&#8221;&#60;/records&#62;&#8221;; <br />// be sure to put text data in CDATA <br />while($row = mysql_fetch_array($result,MYSQL_ASSOC)) { </p>
<p>&#160;&#160;&#160; <br />&#160;&#160;&#160; echo &#8220;&#60;row id=&#39;&#8221;. $row[id_avis_hs].&#8221;&#39;&#62;&#8221;; <br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[annee_hs].&#8221;&#60;/cell&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[date_hs].&#8221;&#60;/cell&#62;&#8221;;&#160; <br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[heure_d_hs].&#8221;&#60;/cell&#62;&#8221;; <br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[heure_f_hs].&#8221;&#60;/cell&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[nbre_heure_hs].&#8221;&#60;/cell&#62;&#8221;;&#160;&#160;&#160; <br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[tache].&#8221;&#60;/cell&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[projet].&#8221;&#60;/cell&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[date_avis_hs].&#8221;&#60;/cell&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[etat_avis_hs].&#8221;&#60;/cell&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#8221;. $row[motif_refus_hs].&#8221;&#60;/cell&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;cell&#62;&#60;![CDATA[&#60;a href=&#39;../library/TCPDF/examples/example_003.php?num=".$row[user_id_hs].&#8221;&#38;amp;&#38;amp;date=&#8221;.$row[date_avis_hs].&#8221;&#39; target=&#39;_blank&#39;&#62;&#60;img src=&#39;../public/images/PDF_20.png&#39; alt=&#39;PDF&#39; style=&#39;border:0;&#39; /&#62;&#60;/a&#62;]]&#62;&#60;/cell&#62;&#8221;;<br />&#160;&#160;&#160; $ntotalhs = $row[nbre_total_hs];<br />&#160;&#160;&#160; echo &#8220;&#60;/row&#62;&#8221;; <br />&#160;&#160;&#160; <br />} <br />&#160;&#160;&#160; echo &#8220;&#60;userData&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;heure_f_hs&#62;&#8221;. &#39;Total :&#39; .&#8221;&#60;/heure_f_hs&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;nbre_heure_hs&#62;&#8221;. $ntotalhs .&#8221;&#60;/nbre_heure_hs&#62;&#8221;;<br />&#160;&#160;&#160; echo &#8220;&#60;/userData&#62;&#8221;;&#160;&#160;&#160; </p>
<p>echo &#8220;&#60;/rows&#62;&#8221;;</p></p>
]]></description>
        	        	<pubDate>Fri, 19 Jun 2009 16:30:37 +0300</pubDate>
        </item>
</channel>
</rss>