<?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: Custom Edit Form</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/custom-edit-form</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/custom-edit-form/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>krakerns on Custom Edit Form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-edit-form#p17204</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-edit-form#p17204</guid>
        	        	<description><![CDATA[<p>Noob Question: How can i close the loaded modal window? if it is loaded from other page.</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 07:31:06 +0300</pubDate>
        </item>
        <item>
        	<title>Dmoney on Custom Edit Form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-edit-form#p13390</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-edit-form#p13390</guid>
        	        	<description><![CDATA[<p>I was able to achieve what I needed like this :</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8426' value='Select Code' data-codeid='sfcode8426' /></p>
<div class='sfcode' id='sfcode8426'>
<p>&#160;$(&#39;#opener&#39;).click(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var $gr = jQuery("#editgrid").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if($gr){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var $dialog = $(&#39;&#60;div&#62;&#60;/div&#62;&#39;)<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.load(&#39;modalForm.php?edit=&#39; + $gr)<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;.dialog({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;autoOpen: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;title: &#39;Basic Dialog&#39;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$dialog.dialog(&#39;open&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;else {<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;alert(&#39;please select a row to edit&#39;);}<br />&#160;&#160; &#160;});</p>
</div>
]]></description>
        	        	<pubDate>Mon, 28 Dec 2009 19:47:11 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Custom Edit Form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-edit-form#p13382</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-edit-form#p13382</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Maybe you will need to use the FormToGrid and GridToForm methods in this case.</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing&#038;s=gridtoform#gridtoform" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....gridtoform</a></p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 28 Dec 2009 18:33:36 +0200</pubDate>
        </item>
        <item>
        	<title>Dmoney on Custom Edit Form</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/custom-edit-form#p13377</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/custom-edit-form#p13377</guid>
        	        	<description><![CDATA[<p>I need to have a custom edit form so that I can make changes to data I&#39;m not displaying in the grid that exists in the record in mysql.&#160; I also need an Add Record Button.</p>
</p>
<p>I believe I can accomplish the Add Record using jquery ui like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7414' value='Select Code' data-codeid='sfcode7414' /></p>
<div class='sfcode' id='sfcode7414'>
<p>var $dialog = $(&#39;&#60;div&#62;&#60;/div&#62;&#39;)<br />&#160;&#160;&#160; &#160;&#160;&#160; .load(&#39;modalForm.php&#39;)<br />&#160;&#160;&#160; &#160;&#160;&#160; .dialog({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; autoOpen: false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; title: &#39;Basic Dialog&#39;<br />&#160;&#160;&#160; &#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160; $(&#39;#opener&#39;).click(function() {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; $dialog.dialog(&#39;open&#39;);<br />&#160;&#160;&#160; });</p>
</p>
<p>&#60;button id="opener" class="ui-button ui-state-default ui-corner-all"&#62;Create New&#60;/button&#62;</p>
</div>
<p>But I don&#39;t know how to do the same for the edit because I don&#39;t know how to pass the selected row to the modal window. for example selecting row 3 and pressing the edit button needs to open a modal with the ajax page "modalForm.php?row=3" my current edit row button calls this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9669' value='Select Code' data-codeid='sfcode9669' /></p>
<div class='sfcode' id='sfcode9669'>$("#bedata").click(function(){<br />&#160;&#160;&#160; var gr = jQuery("#editgrid").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);<br />&#160;&#160;&#160; if( gr != null ) jQuery("#editgrid").jqGrid(&#39;editGridRow&#39;,gr,{height:280,reloadAfterSubmit:false});<br />&#160;&#160;&#160; else alert("Please Select Row");<br />});</div>
<p>but I do not know how to modify this to load an external form rather than just the fields that are displayed in the grid. ie "modalForm.php?row=3"</p>
</p>
<p>Any suggestions?</p></p>
]]></description>
        	        	<pubDate>Mon, 28 Dec 2009 18:01:30 +0200</pubDate>
        </item>
</channel>
</rss>