<?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: How to change the recreateForm </title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-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/help/how-to-change-the-recreateform/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>stephen on How to change the recreateForm </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19794</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19794</guid>
        	        	<description><![CDATA[<p>Thanks, Oleg</p>
<p>I will try to extend the default setting.</p>
<p>Thank you so much.</p>
]]></description>
        	        	<pubDate>Wed, 15 Sep 2010 19:26:22 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on How to change the recreateForm </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19722</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19722</guid>
        	        	<description><![CDATA[<p>Hello Stephen,</p>
<p>Default parameter of the function editGridRow are documented unter <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#editgridrow" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....ditgridrow</a>. You can change the default values using</p>
<p>jQuery.extend(jQuery.jgrid.edit, {/* new default values */});</p>
<p>Default values of any parameters of editGridRow including all you listed can you change in the way.</p>
<p>If use use a parameter of editGridRow directly in the call of the function editGridRow or indirect as parameter of navGrid then will be used the parameters and not default values. So all is very easy.</p>
<p>I use for examples in all jqGrids which I use in inline or form editing recreateForm: true. So I included ovewriting default parameters in one JavaScript file which I load in all my pages (in my master page). It maks the code which I write for every grid shorter.</p>
<p>I see no performance problems with the usage of default parameters.</p>
<p>Regards<br />Oleg</p></p>
]]></description>
        	        	<pubDate>Sat, 11 Sep 2010 22:35:55 +0300</pubDate>
        </item>
        <item>
        	<title>stephen on How to change the recreateForm </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19624</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19624</guid>
        	        	<description><![CDATA[<p>Oleg, thank you so much.</p>
<p>You mean&#160;if I use&#160;<strong>form editing</strong> and I don&#39;t extend the default setting,&#160;I have to define "recreateFrom:true" as a part of "navGrid" call inside of preEdit, preAdd parameters. This is the only way to set "recreateFrom:true". I can&#39;t change it later?</p>
<p>How about the other properties and functions, for example:"topinfo", "bottominfo","closeAfterAdd","reloadAfterSubmit". Can they be changed?</p>
<p>If I extend the default setting of jQuery.jgrid.edit, it means all the subsequent grid use it. Is there any performance problem?</p>
<p>Thanks,</p>
<p>Stephen</p></p>
]]></description>
        	        	<pubDate>Thu, 09 Sep 2010 06:02:02 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on How to change the recreateForm </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19612</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19612</guid>
        	        	<description><![CDATA[<p>Hi Stephen!</p>
<p>I would you set recreateForm: true&#160;as you the general default setting. See <a href="http://stackoverflow.com/questions/3416572/jqgrid-set-the-custom-value-of-edittype-custom/3416853#3416853&#160;which" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....nbsp;which</a> describe a problem which can be.</p>
<p>So you can do following</p>
<p>jQuery.extend(jQuery.jgrid.edit, {recreateForm: true});</p>
<p>The usage of</p>
<p>jQuery("#grid_id").jqGrid(&#39;editGridRow&#39;, rowid, properties);</p>
<p>would be also correct if you implement for example inline edit mode and call editGridRow manually inside of onSelectRow or &#160;ondblClickRow enevt handler. If you use <a href="/jqgridwiki/doku.php?id=wiki:form_editing" target="_blank">form editing</a> then you call editGridRow method not direct. To be able to forward the value recreateForm:true to editGridRow you should do this as a part of `navGrid`&#160;call inside of prmEdit, prmAdd parameters:</p>
<p>jqGrid(&#39;navGrid&#39;, &#39;#pager&#39;,<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; { edit: true, add: true, del: false, search: true },<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; { recreateForm: true }, // use default settings for edit<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; { recreateForm: true&#160;}, // use default settings for add<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {}, // delete instead that del:false we need this<br />&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; {multipleSearch : true});&#160;// enable the advanced searching&#160;</p>
<p>To make all more simple I suggest just set&#160;</p>
<p>jQuery.extend(jQuery.jgrid.edit, {recreateForm: true});</p>
<p>at the beginning and forget about existing of this parameter.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Thu, 09 Sep 2010 00:19:30 +0300</pubDate>
        </item>
        <item>
        	<title>stephen on How to change the recreateForm </title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19608</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-change-the-recreateform#p19608</guid>
        	        	<description><![CDATA[<p>As we know we can define the recreatFrom like this:</p>
<p>jQuery("grid").jqGrid({</p>
<p>&#160;&#160; ...</p>
<p>&#160;&#160; edit:{..., recreateFrom:true,...}</p>
<p>&#160;&#160; ...</p>
<p>})</p>
<p>In some case, I want to change the recreateFrom. I tried the following ways to change it, but failed:</p>
<p>1) jQuery("#grid").jqGrid("setGridParam",{recreateForm: true}).</p>
<p>2) jQuery("#grid").jqGrid("editGridRow", "new", {recreateForm: true})</p>
<p>Anybody who knows is there any other way to change this value?&#160;</p>
</p>
<p>Thanks,</p>
<p>Stephen</p>
]]></description>
        	        	<pubDate>Wed, 08 Sep 2010 19:51:42 +0300</pubDate>
        </item>
</channel>
</rss>