<?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: Grid as SubGrid - AddRecord - recreateForm</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-as-subgrid-addrecord-recreateform</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/bugs/grid-as-subgrid-addrecord-recreateform/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Grid as SubGrid - AddRecord - recreateForm</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-as-subgrid-addrecord-recreateform#p3243</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-as-subgrid-addrecord-recreateform#p3243</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You can use the option</p>
<p>clearAfterAdd : false</p>
<p>which does not clear the entered values, but I think this is not</p>
<p>applicable for you. I have added afterComplete event which fires after</p>
<p>the recortd is posted and inserted to the grid. This will be available in the next release.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 25 Nov 2008 00:38:20 +0200</pubDate>
        </item>
        <item>
        	<title>Barry on Grid as SubGrid - AddRecord - recreateForm</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/grid-as-subgrid-addrecord-recreateform#p3240</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/grid-as-subgrid-addrecord-recreateform#p3240</guid>
        	        	<description><![CDATA[<p>Grid as SubGrid, I use beforeShowForm to populate a value in the SubGrid.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5765' value='Select Code' data-codeid='sfcode5765' /></p>
<div class='sfcode' id='sfcode5765'>beforeShowForm : function(form_id){<br />&#160; var SelectedRow = jQuery("#grid1").getGridParam(&#39;selrow&#39;)<br />&#160; var MatchID = jQuery("#grid1").getRowData(SelectedRow)[&#39;match_id&#39;];<br />&#160; jQuery("#match_id",form_id).attr("value",MatchID);},</div>
</p>
<p>This works! After clicking on the submit button on the ADD form the form doesn&#39;t close. (This is the desired behavior.) The new row is added correctly.</p>
<p>The problem is that after submit all the fields in the form are cleared.</p>
<p>Neither onInitializeForm or beforeShowForm are called after the form is cleared. I don&#39;t know how to repopulate the match_id field after the form is submitted.</p></p>
]]></description>
        	        	<pubDate>Mon, 24 Nov 2008 17:55:47 +0200</pubDate>
        </item>
</channel>
</rss>