<?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: excel:true not working for me.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me</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/exceltrue-not-working-for-me/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>davykiash on excel:true not working for me.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18556</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18556</guid>
        	        	<description><![CDATA[</p>
<p>Hi</p>
<p>After playing around with the code this is what finally worked for me.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6814' value='Select Code' data-codeid='sfcode6814' /></p>
<div class='sfcode' id='sfcode6814'>&#60;input id=&#34;export-button&#34; type=&#34;button&#34; <br />&#160;&#160; &#160;value=&#34;Export to CSV/Excel&#34; <br />&#160;&#160; &#160;title=&#34;Export Values to CSV or Excel&#34; <br />&#160;&#160; &#160;style=&#34;cursor: pointer;&#34;/&#62;</div>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6201' value='Select Code' data-codeid='sfcode6201' /></p>
<div class='sfcode' id='sfcode6201'>$(&#39;#export-button&#39;).click(function(){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var postData = $(&#34;#list&#34;).jqGrid(&#39;getGridParam&#39;,&#39;postData&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var str=&#39;&#39;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; for(i in postData)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; str+=i+&#34;=&#34;+postData[i]+&#34;&#38;&#34;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; window.location.href=(&#34;&#60;?php echo $this-&#62;baseUrl() ?&#62;/user/listpayments?export=excel&#38;&#34;+ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;str + new Date().getTime());<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</div>
<p>At the server side</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8489' value='Select Code' data-codeid='sfcode8489' /></p>
<div class='sfcode' id='sfcode8489'>$file=&#34;income_transactions.csv&#34;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;header(&#34;Content-Disposition: attachment; filename=&#34; . urlencode($file));<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;header(&#34;Content-Type: application/force-download&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;header(&#34;Content-Type: application/octet-stream&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;header(&#34;Content-Type: application/download&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;header(&#34;Content-Description: File Transfer&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;header(&#34;Content-type: application/csv&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;header(&#34;Pragma: no-cache&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;header(&#34;Expires: 0&#34;);&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$this-&#62;_response-&#62;setBody($export);</div>
<p>It did the magic for me.</p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 08:45:34 +0300</pubDate>
        </item>
        <item>
        	<title>kuafusoft on excel:true not working for me.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18555</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18555</guid>
        	        	<description><![CDATA[<p>I checked the source code of the example case and find that:</p>
<p>jQuery(&#39;#grid&#39;).jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,{"edit":false,"add":false,"del":false,"search":true,"refresh":true,"view":false,"excel":true},{"drag":true,"resize":true,"closeOnEscape":true,"dataheight":150,"mtype":"POST"},{"drag":true,"resize":true,"closeOnEscape":true,"dataheight":150,"mtype":"POST"},</p>
<p>{"mtype":"POST"},</p>
<p>{"drag":true,"closeAfterSearch":true,"multipleSearch":true},{"drag":true,"resize":true,"closeOnEscape":true,"dataheight":150});</p>
</p>
<p>jQuery(&#39;#grid&#39;).jqGrid(&#39;navButtonAdd&#39;,&#39;#pager&#39;,{caption:&#39;&#39;,title:&#39;Export to Excel&#39;,onClickButton : function(e){<br />try {<br />jQuery("#grid").jqGrid(&#39;excelExport&#39;,{url:&#39;grid.php&#39;});<br />} catch (e) {<br />window.location= &#39;grid.php?oper=excel&#39;;<br />}<br />}});</p></p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 05:58:22 +0300</pubDate>
        </item>
        <item>
        	<title>davykiash on excel:true not working for me.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18397</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18397</guid>
        	        	<description><![CDATA[<p>Just taken a look at your code.</p>
</p>
<p>The main issue is that when I simple add <strong>excel:true</strong> to my list of pager options the button does not appear.</p>
<p>This seems so obivous yet I can get that button to appear.</p>
<p>What could I be missing?</p></p>
]]></description>
        	        	<pubDate>Mon, 05 Jul 2010 22:04:06 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on excel:true not working for me.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18394</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18394</guid>
        	        	<description><![CDATA[<p>Hi!</p>
<p>I don&#39;t really know this feature, but in the source of the example which you post there are following important part which you probably not use:</p>
<p>jQuery(&#39;#grid&#39;).jqGrid(&#39;navButtonAdd&#39;,&#39;#pager&#39;,<br />&#160;&#160; &#160;{caption:&#39;&#39;,<br />&#160;&#160; &#160; &#160;title:&#39;Export to Excel&#39;,<br />&#160;&#160; &#160; &#160;onClickButton : function(e)&#160;{<br />&#160;&#160; &#160; &#160; &#160; &#160;try {<br /><span style="font-size: 13.8889px;">&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160;jQuery("#grid").jqGrid(&#39;excelExport&#39;,{url:&#39;grid.php&#39;});<br />&#160;&#160; &#160; &#160; &#160; &#160;} catch (e) {<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160;window.location= &#39;grid.php?oper=excel&#39;;<br />&#160;&#160; &#160; &#160; &#160; &#160;}<br />&#160;&#160; &#160; &#160;}<br />&#160;&#160; &#160;});&#160;</span></p>
<p>The code of excelExport&#160;function is in the grid.import.js. If you use minimized version of jqGrid you should don&#39;t forget to check the corresponding part (Import/Export) before downloading of jqGrid.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 05 Jul 2010 19:06:55 +0300</pubDate>
        </item>
        <item>
        	<title>davykiash on excel:true not working for me.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18389</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/exceltrue-not-working-for-me#p18389</guid>
        	        	<description><![CDATA[<p>heHi</p>
<p>I have just added the option excel:true to my navigation options but the button is not appearing on my grid pager.</p>
<p>Am using the example <a href="http://www.trirand.com/blog/phpjqgrid/examples/functionality/excel/default.php" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/ph" rel="nofollow">http://www.trirand.com/blog/ph</a>.....efault.php</a></p>
<p><input type='button' class='sfcodeselect' name='sfselectit677' value='Select Code' data-codeid='sfcode677' /></p>
<div class='sfcode' id='sfcode677'>
<p>$(&#34;#list&#34;).jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,&#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;{add:true,addtext:&#39;Add&#39;,edit:true,edittext:&#39;Edit&#39;,del:true,deltext:&#39;Delete&#39;,view:true,viewtext:&#39;View&#39;,search:true,searchtext:&#39;Search&#39;,</p>
<p>refresh:true,refreshtext:&#39;Refresh&#39;,excel:true,exceltext:&#39;Excel&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{url:&#39;&#60;?php echo $this-&#62;baseUrl() ?&#62;/incomedetails/edit&#39;,closeAfterEdit:&#39;true&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{url:&#39;&#60;?php echo $this-&#62;baseUrl() ?&#62;/incomedetails/add&#39;,closeAfterAdd:&#39;true&#39;},&#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;&#160; &#160;&#160;&#160; &#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;{url:&#39;&#60;?php echo $this-&#62;baseUrl() ?&#62;/incomedetails/delete&#39;,closeAfterAdd:&#39;true&#39;}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );</p>
</div>
<p> What am I missing?</p></p>
]]></description>
        	        	<pubDate>Mon, 05 Jul 2010 10:20:58 +0300</pubDate>
        </item>
</channel>
</rss>