<?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: ColumnChooser save to server</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/columnchooser-save-to-server</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/columnchooser-save-to-server/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>csitol on ColumnChooser save to server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/columnchooser-save-to-server#p12549</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/columnchooser-save-to-server#p12549</guid>
        	        	<description><![CDATA[<p>This (sending the information back to the server) is very easy to accomplish.&#160; There&#39;s a function available called "getGridParam" that takes the &#39;colModel&#39; information from the JS setup (hopefully this makes sense).&#160; This returns all of the information about the columns including which are hidden, the order, etc.&#160; If you&#39;re using PHP you JSON.stringify the data you get back and then send it as an Ajax call to your PHP (or whatever) code.&#160; Then you can decide where to keep it, etc.&#160; If you need code for this and you&#39;re using PHP and MySQL I&#39;d be more than happy to send you what I&#39;ve done.</p>
<p>To my mind this is the best of both worlds; you get to decide how to store the data but it&#39;s easy to retrieve from jqGrid!</p>
<p>Also, to further what markw65 said, the DND option in the hide selection list is already there and works perfectly.</p>
<p>Regards,</p>
<p>PhilM</p>
]]></description>
        	        	<pubDate>Sat, 28 Nov 2009 06:58:33 +0200</pubDate>
        </item>
        <item>
        	<title>markw65 on ColumnChooser save to server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/columnchooser-save-to-server#p12460</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/columnchooser-save-to-server#p12460</guid>
        	        	<description><![CDATA[<blockquote>
<p>dpeterman said:</p>
<p>Any chance of adding a call back on &#8220;done&#8221; for the columnChooser? It would nice to be able to save the column configuration to the server. </p>
<p>Also, being able to order the columns would be fantastic. Instead of a list of columns you could have 2 lists. The left hand side would contain the hidden columns and the right hand side for the displayed columns. Then add some up/down arrows to the &#8220;display&#8221; list to re-order the columns (also drag n drop would nice).</p>
</blockquote>
<hr />
<p>There is a "done" callback, but its harder than necessary to intercept (basically, if you intercept it, you&#39;re responsible for calling reorderColumns). This should be fixed...</p>
</p>
<p>The default callback does this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1791' value='Select Code' data-codeid='sfcode1791' /></p>
<div class='sfcode' id='sfcode1791'>"done" : function(perm) { if (perm) this.jqGrid("remapColumns", perm, true) },</div>
</p>
<p>You can replace it with one that does that, and then whatever you want.</p>
</p>
<p>As for the re-ordering, and two lists - you described /exactly/ how it works today (except that the displayed items are on the left!).</p>
<p>Im guessing you need to include ui.muiltiselect.js (without that you&#39;ll just get a standard &#60;select multiple&#62; element)</p>
</p>
<p>Mark</p></p>
]]></description>
        	        	<pubDate>Wed, 25 Nov 2009 18:06:06 +0200</pubDate>
        </item>
        <item>
        	<title>dpeterman on ColumnChooser save to server</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/columnchooser-save-to-server#p12455</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/columnchooser-save-to-server#p12455</guid>
        	        	<description><![CDATA[<p>Tony,</p>
</p>
<p>Any chance of adding a call back on "done" for the columnChooser? It would nice to be able to save the column configuration to the server.</p>
</p>
<p>Also, being able to order the columns would be fantastic. Instead of a list of columns you could have 2 lists. The left hand side would contain the hidden columns and the right hand side for the displayed columns. Then add some up/down arrows to the "display" list to re-order the columns (also drag n drop would nice).</p>
</p>
<p>Love the tool--Doug</p>
]]></description>
        	        	<pubDate>Wed, 25 Nov 2009 16:41:35 +0200</pubDate>
        </item>
</channel>
</rss>