<?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: Add your own custom buttons to a form edit dialog page</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/add-your-own-custom-buttons-to-a-form-edit-dialog-page</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/add-your-own-custom-buttons-to-a-form-edit-dialog-page/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Nathan on Add your own custom buttons to a form edit dialog page</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-your-own-custom-buttons-to-a-form-edit-dialog-page#p23761</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-your-own-custom-buttons-to-a-form-edit-dialog-page#p23761</guid>
        	        	<description><![CDATA[<p>I put the code in the onInitializeForm method.</p>
</p>
<p>N</p>
]]></description>
        	        	<pubDate>Sun, 26 Jun 2011 03:13:11 +0300</pubDate>
        </item>
        <item>
        	<title>nickelj on Add your own custom buttons to a form edit dialog page</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-your-own-custom-buttons-to-a-form-edit-dialog-page#p23759</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-your-own-custom-buttons-to-a-form-edit-dialog-page#p23759</guid>
        	        	<description><![CDATA[<p>Thanks so much for your reply!</p>
</p>
<p>Where in the jqgrid code would you put this clone code?</p>
</p>
<p>In the beforeshowform?</p>
</p>
<p>Jim</p>
]]></description>
        	        	<pubDate>Sat, 25 Jun 2011 21:13:37 +0300</pubDate>
        </item>
        <item>
        	<title>Nathan on Add your own custom buttons to a form edit dialog page</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-your-own-custom-buttons-to-a-form-edit-dialog-page#p23758</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-your-own-custom-buttons-to-a-form-edit-dialog-page#p23758</guid>
        	        	<description><![CDATA[<p>Hi:</p>
</p>
<p>You can do this and here&#39;s the steps for how got it working.</p>
</p>
<p>1. &#160;Clone the submit or cancel button</p>
</p>
<p>var clone = $(&#39;#sData&#39;).clone();</p>
</p>
<p>2. &#160;Change the properties of the clone element</p>
</p>
<p>change the id :clone.attr(&#39;id&#39;,&#39;btn_something_unique&#39;);</p>
<p>change the name : clone.attr(&#39;name&#39;,&#39;btn_something_unique&#39;);</p>
</p>
<p>3. &#160;Insert the &#160;clone after the element you want:</p>
</p>
<p>clone.insertAfter(&#39;#SOME_CONTROL&#39;);</p>
<p>4. &#160;I use UI button so add that to the button created:</p>
</p>
<p>$("#btn_something_unique").button({</p>
<p><span style="white-space: pre;"> </span>label :"something"</p>
<p>}).click(function(){</p>
<p><span style="white-space: pre;"> </span>//what the button needs to do</p>
<p>});</p>
</p>
<p>5. &#160;Because the UI button adds some extra classes we should remove them so the buttons look the same</p>
</p>
<p>$(&#39;#btn_something_unique&#39;).removeClass(&#39;ui-button ui-widget ui-button-text-icon-primary&#39;);</p>
</p>
<p>That should get you going.</p>
]]></description>
        	        	<pubDate>Sat, 25 Jun 2011 21:03:53 +0300</pubDate>
        </item>
        <item>
        	<title>nickelj on Add your own custom buttons to a form edit dialog page</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-your-own-custom-buttons-to-a-form-edit-dialog-page#p23402</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-your-own-custom-buttons-to-a-form-edit-dialog-page#p23402</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>Is there someway to add your own buttons to a form edit dialog page beside either the next/previous navigation buttons or beside the submit/cancel buttons?</p>
</p>
<p>I would like a button that allows the user to print an envelope while a customer record is displayed in the Form Edit dialog</p>
</p>
<p>I do know I can add my own buttons to the bottom of the grid - it would be nice to do it on the Form Edit too.</p>
</p>
<p>Thanks!</p>
</p>
<p>Jim</p>
]]></description>
        	        	<pubDate>Tue, 31 May 2011 02:24:38 +0300</pubDate>
        </item>
</channel>
</rss>