<?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: Issue while exporting current jq grid data to excel.</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/issue-while-exporting-current-jq-grid-data-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/discussion/issue-while-exporting-current-jq-grid-data-to-excel/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Issue while exporting current jq grid data to excel.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/issue-while-exporting-current-jq-grid-data-to-excel#p31316</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/issue-while-exporting-current-jq-grid-data-to-excel#p31316</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>In this case I recommend you to use server side export to excel string instead of client side.</p>
<p>Â </p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Thu, 30 Oct 2014 16:31:24 +0200</pubDate>
        </item>
        <item>
        	<title>mcfarland on Issue while exporting current jq grid data to excel.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/issue-while-exporting-current-jq-grid-data-to-excel#p31315</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/issue-while-exporting-current-jq-grid-data-to-excel#p31315</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Â Â Â Â Â Â Â Â Â  Thanks for responding.</p>
<p>One possible solution is to use getrowdata, but with number of records relative big by example 1000.</p>
<p>Â </p>
<p>the problem is i canuse get row data for filtered records but when you wantÂ  to select all the records to export to excel only first page is capturing suppose if i have 670 pages in that only first page records is showing in the excel..</p>
]]></description>
        	        	<pubDate>Thu, 30 Oct 2014 16:12:44 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Issue while exporting current jq grid data to excel.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/issue-while-exporting-current-jq-grid-data-to-excel#p31308</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/issue-while-exporting-current-jq-grid-data-to-excel#p31308</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>This request is discussed many times.</p>
<p>One possible solution is to use getrowdata, but with number of records relative big by example 1000.</p>
<p>Â </p>
<p>Kind Regards</p>
]]></description>
        	        	<pubDate>Thu, 30 Oct 2014 13:46:58 +0200</pubDate>
        </item>
        <item>
        	<title>mcfarland on Issue while exporting current jq grid data to excel.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/issue-while-exporting-current-jq-grid-data-to-excel#p31301</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/issue-while-exporting-current-jq-grid-data-to-excel#p31301</guid>
        	        	<description><![CDATA[<p>hi,</p>
<p>Â i am using filter tool bar on export to excel</p>
<p>$(<span style="font-size: small"><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">"#list"</span></span><span style="font-size: small">).jqGrid(</span><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">'filterToolbar'</span></span><span style="font-size: small">, { stringResult: </span><span style="color: #0000ff;font-size: small"><span style="color: #0000ff;font-size: small">true</span></span><span style="font-size: small">, searchOnEnter: </span><span style="color: #0000ff;font-size: small"><span style="color: #0000ff;font-size: small">true</span></span><span style="font-size: small">, defaultSearch: </span><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">"cn"</span></span><span style="font-size: small"> })</span></span>.navButtonAdd(<span style="font-size: small"><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">'#pager'</span></span><span style="font-size: small">, {</span></span></p>
<p>caption:<span style="font-size: small"><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">"Export to Excel"</span></span><span style="font-size: small">,</span></span></p>
<p>buttonicon:<span style="font-size: small"><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">"ui-icon-disk"</span></span><span style="font-size: small">,</span></span></p>
<p>onClickButton:<span style="font-size: small"><span style="color: #0000ff;font-size: small"><span style="color: #0000ff;font-size: small">function</span></span><span style="font-size: small">() {</span></span>ExportDataToExcel(<span style="font-size: small"><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">"#list"</span></span><span style="font-size: small">);</span></span>},</p>
<p>position:<span style="font-size: small"><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">"last"</span></span></span>});</p>
<p>Â </p>
<p><span style="font-size: small"><span style="color: #0000ff;font-size: small"><span style="color: #0000ff;font-size: small">function</span></span><span style="font-size: small"> ExportDataToExcel(tableCtrl) {</span></span></p>
<p>ExportJQGridDataToExcel(tableCtrl,</p>
<p><span style="font-size: small"><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">"sample.xlsx"</span></span><span style="font-size: small">);</span></span></p>
<p>}</p>
<p>Â </p>
<p>This is my ExportJQGridDataToExcel function.</p>
<p>Â </p>
<p>function</p>
<p><span style="font-size: small">ExportJQGridDataToExcel(tableCtrl, excelFilename) {</span></p>
<p><span style="font-size: small"><span style="color: #0000ff;font-size: small"><span style="color: #0000ff;font-size: small">var</span></span><span style="font-size: small"> allJQGridData = $(tableCtrl).jqGrid(</span><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">'getRowData'</span></span><span style="font-size: small">);</span></span></p>
<p><span style="font-size: small"><span style="color: #0000ff;font-size: small"><span style="color: #0000ff;font-size: small">var</span></span><span style="font-size: small"> jqgridRowIDs = $(tableCtrl).getDataIDs(); </span></span><br />
<span style="font-size: small"><span style="color: #0000ff;font-size: small"><span style="color: #0000ff;font-size: small">var</span></span><span style="font-size: small"> headerData = $(tableCtrl).getRowData(jqgridRowIDs[0]); </span></span></p>
<p>Â </p>
<p>when i use this</p>
<p>var allJQGridData = $(tableCtrl).jqGrid('getGridParam', 'data');Â  it will give all the records in the grid</p>
<p>when i use this</p>
<p><span style="font-size: small"><span style="color: #0000ff;font-size: small"><span style="color: #0000ff;font-size: small">var</span></span><span style="font-size: small"> allJQGridData = $(tableCtrl).jqGrid(</span><span style="color: #a31515;font-size: small"><span style="color: #a31515;font-size: small">'getRowData'</span></span><span style="font-size: small">); it will give the filtered records and only first page is capturing.</span></span></p>
<p>Â </p>
<p><span style="font-size: small"><span style="font-size: small">Can any one plz help me out how to solve this issue,How can i get all the records in the grid as well as when i filter i need to get selected records.</span></span></p>
]]></description>
        	        	<pubDate>Mon, 27 Oct 2014 21:35:12 +0200</pubDate>
        </item>
</channel>
</rss>