<?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: &#091;HELP&#093; About Export to Excel</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-about-export-to-excel</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/help-about-export-to-excel/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>zenixgrace on &#091;HELP&#093; About Export to Excel</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-about-export-to-excel#p18536</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-about-export-to-excel#p18536</guid>
        	        	<description><![CDATA[<p>CASE CLOSED...</p>
</p>
<p><img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /><img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /><img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /><img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
]]></description>
        	        	<pubDate>Mon, 12 Jul 2010 11:12:18 +0300</pubDate>
        </item>
        <item>
        	<title>zenixgrace on &#091;HELP&#093; About Export to Excel</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-about-export-to-excel#p18499</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-about-export-to-excel#p18499</guid>
        	        	<description><![CDATA[<p>thanks for ur reply DroidDr...</p>
</p>
<p>i mean what the best way to passing my variabel to doPrintExcel-rptcustcomplain.php without use get method (passing the variabel use that URL)</p>
</p>
<p>if i use this way, it&#39;s only work with a small data..</p>
<p>then if the data is big, it not work because the URL i pass is too long..</p>
</p>
<p>i don&#39;t know why the browser cut my URL if my URL is to long..</p>
</p>
<p>i mean any the other best way for passing my variabel to my doPrintExcel-rptcustcomplain page?</p>
</p>
<p>best regards,</p>
<p>zenixgrace</p>
]]></description>
        	        	<pubDate>Fri, 09 Jul 2010 07:27:20 +0300</pubDate>
        </item>
        <item>
        	<title>DroidDr on &#091;HELP&#093; About Export to Excel</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-about-export-to-excel#p18492</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-about-export-to-excel#p18492</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I have written a few pages with a pear php package that does just that: create an excel document and send it back to the browser. The browser then automatically opens excel.</p>
<p>I am not sure if this fits what you need, but here you go:</p>
<p><a href="http://pear.php.net/package/Spreadsheet_Excel_Writer/redirected" rel="nofollow" target="_blank"><a href="http://pear.php.net/package/Sp" rel="nofollow">http://pear.php.net/package/Sp</a>.....redirected</a></p>
</p>
<p>Best wishes.</p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 22:49:29 +0300</pubDate>
        </item>
        <item>
        	<title>zenixgrace on &#091;HELP&#093; About Export to Excel</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-about-export-to-excel#p18472</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-about-export-to-excel#p18472</guid>
        	        	<description><![CDATA[<p>hiii.....</p>
</p>
<p>i&#39;m a newbie..</p>
<p>i want export my grid to excel...</p>
</p>
<p>my jqgrid configuration is like that..</p>
<p>jQuery(&#39;#tableGrid&#39;).jqGrid({&#160;&#160; &#160;<br />&#160; &#160;&#160;&#160; &#160;//url:&#39;../admspanel/maingridrptcustcomplain.php&#39;,<br />&#160;&#160; &#160;datatype: "xml",<br />&#160;&#160; &#160;height: 470,<br />&#160;&#160; &#160;width:680,<br />&#160;&#160; &#160;mtype:"POST",<br />&#160; &#160;&#160;&#160; &#160;colNames:[&#39;Code&#39;,&#39;Date&#39;,&#39;Username&#39;,&#39;Customer Name&#39;,&#39;Contact Person&#39;,&#39;Menu&#39;,&#39;Description&#39;],<br />&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;code&#39;,index:&#39;KdComplain&#39;,width:80,align:"left"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;dateComp&#39;,index:&#39;TglInput&#39;,width:80,align:"left",formatter:&#39;date&#39;,formatoptions: {srcformat:&#39;Y-m-d&#39;,newformat:&#39;M d,Y&#39;}},<br />&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;username&#39;,index:&#39;Username&#39;,width:120,align:"left"},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;custName&#39;,index:&#39;CustomerName&#39;,width:200,align:"left"},<br />&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;contact&#39;,index:&#39;ContactPerson&#39;,width:150,align:"left"},<br />&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;menu&#39;,index:&#39;Menu&#39;,width:180,align:"left"},<br />&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;desc&#39;,index:&#39;Description&#39;,width:350,align:"left"}<br />&#160; &#160;&#160;&#160; &#160;],<br />&#160; &#160;&#160;&#160; &#160;rowNum:100,<br />&#160; &#160;&#160;&#160; &#160;//rowList:[10,20,30],<br />&#160; &#160;&#160;&#160; &#160;pager: &#39;#navGrid&#39;,<br />&#160; &#160;&#160;&#160; &#160;sortname: &#39;KdComplain&#39;,<br />&#160;&#160; &#160;shrinkToFit:false,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; sortorder: "asc",<br />&#160;&#160; &#160;reloadGrid:false,<br />&#160;&#160; &#160;//rownumbers:true,<br />&#160;&#160; &#160;//rownumWidth: 40,<br />&#160;&#160; &#160;//gridview: true,<br />&#160;&#160; &#160;scroll: 1,<br />&#160;&#160; &#160;reloadGrid:false,<br />&#160;&#160;&#160; caption: "Report Customer Complaint"<br />});</p>
</p>
<p>i have a function that convert that grid to excel</p>
<p>here is my function :</p>
</p>
<p>function PrintExcel(DateFrom,DateTo,User) {&#160;&#160; &#160;<br />&#160;&#160; &#160;//var data = new Array();<br />&#160;&#160; &#160;var count = $("#tableGrid").jqGrid(&#39;getGridParam&#39;,&#39;records&#39;);<br />&#160;&#160; &#160;var caption = $("#tableGrid").jqGrid(&#39;getGridParam&#39;,&#39;caption&#39;);&#160;&#160; &#160;<br />&#160;&#160; &#160;var colnames = $("#tableGrid").jqGrid(&#39;getGridParam&#39;,&#39;colNames&#39;);<br />&#160;&#160; &#160;var colmodel = $("#tableGrid").jqGrid(&#39;getGridParam&#39;,&#39;colModel&#39;);<br />&#160;&#160; &#160;var ids = $("#tableGrid").getDataIDs();<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;codeComp = "";<br />&#160;&#160; &#160;dateComp = "";<br />&#160;&#160; &#160;usergrid = "";<br />&#160;&#160; &#160;cust = "";<br />&#160;&#160; &#160;contact = "";<br />&#160;&#160; &#160;menu = "";<br />&#160;&#160; &#160;desc = "";<br />&#160;&#160; &#160;headernames = "";<br />&#160;&#160; &#160;headerwidth = "";<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;for (var i = 0; i &#60; colnames.length; i++) {<br />&#160;&#160; &#160;&#160;&#160; &#160;headernames = headernames+"&#124;"+colnames[i];<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;for (var i = 0; i &#60; colmodel.length; i++) {<br />&#160;&#160; &#160;&#160;&#160; &#160;headerwidth = headerwidth+"&#124;"+(colmodel[i].width/10+3);<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;if(count == 0) return false;&#160;&#160; &#160;<br />&#160;&#160; &#160;for (var i = 0; i &#60; ids.length; i++) {<br />&#160;&#160; &#160;&#160;&#160; &#160;codeComp = codeComp+"&#124;"+$("#tableGrid").getCell(ids[i],&#39;code&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;dateComp = dateComp+"&#124;"+$("#tableGrid").getCell(ids[i],&#39;dateComp&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;usergrid = usergrid+"&#124;"+$("#tableGrid").getCell(ids[i],&#39;username&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;cust = cust+"&#124;"+$("#tableGrid").getCell(ids[i],&#39;custName&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;contact = contact+"&#124;"+$("#tableGrid").getCell(ids[i],&#39;contact&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;menu = menu+"&#124;"+$("#tableGrid").getCell(ids[i],&#39;menu&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;desc = desc+"&#124;"+$("#tableGrid").getCell(ids[i],&#39;desc&#39;);&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;codeComp = codeComp.substring(1);<br />&#160;&#160; &#160;dateComp = dateComp.substring(1);<br />&#160;&#160; &#160;usergrid = usergrid.substring(1);<br />&#160;&#160; &#160;cust&#160;&#160;&#160;&#160; = cust.substring(1);<br />&#160;&#160; &#160;contact&#160; = contact.substring(1);<br />&#160;&#160; &#160;menu&#160;&#160;&#160;&#160; = menu.substring(1);<br />&#160;&#160; &#160;desc&#160;&#160;&#160;&#160; = desc.substring(1);<br />&#160;&#160; &#160;headernames = headernames.substring(1);<br />&#160;&#160; &#160;headerwidth = headerwidth.substring(1);&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;window.location = &#39;doPrintExcel-rptcustcomplain.php?cap=&#39;+caption+&#39;&#38;cou=&#39;+count+&#39;&#38;hn=&#39;+headernames+&#39;&#38;hw=&#39;+headerwidth+&#39;&#38;cc=&#39;+codeComp+&#39;&#38;dc=&#39;+dateComp+&#39;&#38;ug=&#39;+usergrid+&#39;&#38;cs=&#39;+cust+&#39;&#38;ct=&#39;+contact+&#39;&#38;mn=&#39;+menu+&#39;&#38;de=&#39;+desc+&#39;&#38;f=&#39;+DateFrom+&#39;&#38;t=&#39;+DateTo+&#39;&#38;u=&#39;+User;<br />}</p>
<p>when i click the Print button, i call PrintToExcel function like that</p>
<p>PrintExcel($(&#39;#txtDateFrom&#39;).val(),$(&#39;#txtDateTo&#39;).val(),$(&#39;#cboUser :selected&#39;).text());</p>
</p>
<p>on doPrintExcel-rptcustcomplain.php, i&#39;m split my variabel to array..</p>
<p>and then i print all my variabel to excel</p>
</p>
<p>i know is not a good way..</p>
<p>it&#39;s work for a small data..</p>
<p>if a grid have a big data, it&#39;s work not good because the url that i passing is to long</p>
</p>
<p>is there any best way convert to excel?</p>
<p>Best Regards,</p>
<p>zenixgrace</p>
]]></description>
        	        	<pubDate>Thu, 08 Jul 2010 11:57:53 +0300</pubDate>
        </item>
</channel>
</rss>