<?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: Copy button</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/copy-button</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/feature-request/copy-button/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Copy button</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/copy-button#p18048</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/copy-button#p18048</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>IMHO this is supported in add mode with the following settings:</p>
<p>closeAfterAdd : false,</p>
<p>clearAfterAdd : false,</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 20 Jun 2010 10:17:07 +0300</pubDate>
        </item>
        <item>
        	<title>box on Copy button</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/copy-button#p18011</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/copy-button#p18011</guid>
        	        	<description><![CDATA[<p>A "copy" button would be a valuable and easy addition to the Form Edit mode.&#160; It would just need to set the "id_g" to "_empty" then continue to submit as normal.&#160; Here are the changes I made to grid.formedit.js (version 3.4.3) to do this:</p>
<p>Add at line 213:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8837' value='Select Code' data-codeid='sfcode8837' /></p>
<div class='sfcode' id='sfcode8837'>var bCopy =&#34;&#60;input id=&#39;copyData&#39; type=&#39;button&#39; class=&#39;EditButton&#39; value=&#39;Copy&#39;/&#62;&#34;;</div>
<p>Use this new variable at line 215:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2223' value='Select Code' data-codeid='sfcode2223' /></p>
<div class='sfcode' id='sfcode2223'>$(tbl).append(&#34;&#60;tr id=&#39;Act_Buttons&#39;&#62;&#60;td class=&#39;navButton&#39;&#62;&#34;+bP+&#34;&#38;nbsp;&#34;+bN+&#34;&#60;/td&#62;&#60;td class=&#39;EditButton&#39;&#62;&#34;+bS+&#34;&#38;nbsp;&#34;+<span style=&#34;text-decoration: underline;&#34;><strong>bCopy+&#34;&#38;nbsp;&#34;+</strong></span>bC+&#34;&#60;/td&#62;&#60;/tr&#62;&#34;);</div>
<p>Set the click event to clear the ID and continue submit at line 225:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8358' value='Select Code' data-codeid='sfcode8358' /></p>
<div class='sfcode' id='sfcode8358'>$(&#34;#copyData&#34;, &#34;#&#34;+frmtb).click(function(e){<br />&#160;&#160;&#160; $(&#34;#id_g&#34;,&#34;#&#34;+frmtb).val(&#34;_empty&#34;); // Remove the ID so it looks like an &#34;add&#34; operation<br />&#160;&#160;&#160; $(&#34;#sData&#34;, &#34;#&#34;+frmtb).click(); // &#34;Click&#34; the submit button<br />});</div>
<p>This could be an optional feature, disabling by just setting bCopy to an empty string.</p>
<p>Thanks,</p>
<p>Ben</p>
]]></description>
        	        	<pubDate>Thu, 17 Jun 2010 18:30:17 +0300</pubDate>
        </item>
</channel>
</rss>