<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ed Spencer &#187; csv</title>
	<atom:link href="http://edspencer.net/tag/csv/feed" rel="self" type="application/rss+xml" />
	<link>http://edspencer.net</link>
	<description>Software Architect at Sencha, making Ext JS awesome</description>
	<lastBuildDate>Thu, 26 Aug 2010 02:30:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ext.ux.Exporter &#8211; export any Grid to Excel or CSV</title>
		<link>http://edspencer.net/2009/11/ext-ux-exporter-export-any-grid-to-excel-or-csv.html</link>
		<comments>http://edspencer.net/2009/11/ext-ux-exporter-export-any-grid-to-excel-or-csv.html#comments</comments>
		<pubDate>Tue, 24 Nov 2009 17:32:33 +0000</pubDate>
		<dc:creator>Ed Spencer</dc:creator>
				<category><![CDATA[Examples]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[extjs]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[grid]]></category>

		<guid isPermaLink="false">http://edspencer.net/?p=342</guid>
		<description><![CDATA[<p>Sometimes we want to print things, like grids or trees.  The <a href="http://edspencer.net/2009/07/extuxprinter-printing-for-any-ext.html">Ext JS printing plugin</a> is pretty good for that.  But what if we want to export them instead? Enter <a href="http://github.com/edspencer/Ext.ux.Exporter">Ext.ux.Exporter</a>.</p>
<p>Ext.ux.Exporter allows any store-based component (such as grids) to be exported, <b>locally</b>, to Excel or any other format.  It does not require any server side programming &#8211; the export document is generated on the fly, entirely in JavaScript.</p>
<p>The extension serves as a base for exporting any kind of data, but comes bundled with a .xls export formatter suitable for exporting any Grid straight to Excel.  Here&#8217;s how to do that:</p>
<pre class="brush: jscript;">
var grid = new Ext.grid.GridPanel({
  store: someStore,
  tbar : [
    {
      xtype: 'exportbutton',
      store: someStore
    }
  ],
  //your normal grid config goes here
});
</pre>
<p>Clicking the Download button in the top toolbar iterates over the data in the store and creates an Excel file locally, before Base64 encoding it and redirecting the browser via a data url.  If you have Excel or a similar program installed your browser should ask you to save the file or open it with Excel.</p>
<p>I put together a quick example of the plugin in action inside the repository, just <a href="http://github.com/edspencer/Ext.ux.Exporter">clone</a> or <a href="http://github.com/edspencer/Ext.ux.Exporter/zipball/master">download the code</a> and drag the examples/index.html file into your browser to run it.</p>
<p>The Exporter will work with any store or store-based component.  It also allows export to any format &#8211; for example CSV or PDF.  Although the Excel Formatter is probably the most useful, implementing a CSV or other Formatter should be trivial &#8211; check out the Excel Formatter example in the <a href="http://github.com/edspencer/Ext.ux.Exporter/tree/master/ExcelFormatter/">ExcelFormatter</a> directory.</p>
]]></description>
			<content:encoded><![CDATA[<p>Sometimes we want to print things, like grids or trees.  The <a href="http://edspencer.net/2009/07/extuxprinter-printing-for-any-ext.html">Ext JS printing plugin</a> is pretty good for that.  But what if we want to export them instead? Enter <a href="http://github.com/edspencer/Ext.ux.Exporter">Ext.ux.Exporter</a>.</p>
<p>Ext.ux.Exporter allows any store-based component (such as grids) to be exported, <b>locally</b>, to Excel or any other format.  It does not require any server side programming &#8211; the export document is generated on the fly, entirely in JavaScript.</p>
<p>The extension serves as a base for exporting any kind of data, but comes bundled with a .xls export formatter suitable for exporting any Grid straight to Excel.  Here&#8217;s how to do that:</p>
<pre class="brush: jscript;">
var grid = new Ext.grid.GridPanel({
  store: someStore,
  tbar : [
    {
      xtype: 'exportbutton',
      store: someStore
    }
  ],
  //your normal grid config goes here
});
</pre>
<p>Clicking the Download button in the top toolbar iterates over the data in the store and creates an Excel file locally, before Base64 encoding it and redirecting the browser via a data url.  If you have Excel or a similar program installed your browser should ask you to save the file or open it with Excel.</p>
<p>I put together a quick example of the plugin in action inside the repository, just <a href="http://github.com/edspencer/Ext.ux.Exporter">clone</a> or <a href="http://github.com/edspencer/Ext.ux.Exporter/zipball/master">download the code</a> and drag the examples/index.html file into your browser to run it.</p>
<p>The Exporter will work with any store or store-based component.  It also allows export to any format &#8211; for example CSV or PDF.  Although the Excel Formatter is probably the most useful, implementing a CSV or other Formatter should be trivial &#8211; check out the Excel Formatter example in the <a href="http://github.com/edspencer/Ext.ux.Exporter/tree/master/ExcelFormatter/">ExcelFormatter</a> directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://edspencer.net/2009/11/ext-ux-exporter-export-any-grid-to-excel-or-csv.html/feed</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
	</channel>
</rss>
