<?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: Adding static data to post for Adding/Editing</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/adding-static-data-to-post-for-addingediting</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/adding-static-data-to-post-for-addingediting/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Adding static data to post for Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-static-data-to-post-for-addingediting#p9330</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-static-data-to-post-for-addingediting#p9330</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If this is static data use the first approach, if dynamic use the second one.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 04 Sep 2009 05:24:40 +0300</pubDate>
        </item>
        <item>
        	<title>Renso on Adding static data to post for Adding/Editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/adding-static-data-to-post-for-addingediting#p9278</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/adding-static-data-to-post-for-addingediting#p9278</guid>
        	        	<description><![CDATA[<p>Using version 3.4.4 I want to set the editData when initializing the grid, as the data I want to add never changes once the grid is defined. I tried this but it does not work; does not add the data posted:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4612' value='Select Code' data-codeid='sfcode4612' /></p>
<div class='sfcode' id='sfcode4612'>&#160;&#160;&#160;&#160;&#160;&#160;&#160; .navGrid(item + &#39;Pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { refresh: true, edit: true, add: true, del: true, search: false }, //options <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {height: 575, width: 800,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; reloadAfterSubmit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; modal: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; processData: &#39;Updating the Complaint...&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editCaption: &#39;Edit a Complaint&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: #ff0000;">editData: <span style="color: #3366ff;">moreData</span>,</span></div>
<p><span style="color: #ff0000;"></span></p>
</p>
<p>moreData looks like this:</p>
<p><span style="color: #3366ff;">{ accountId: 111, primaryContact: 27478 }</span></p>
</p>
<p>What I eneded up doing is this, which works, but I am not sure if this is what I am supposed to do:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9346' value='Select Code' data-codeid='sfcode9346' /></p>
<div class='sfcode' id='sfcode9346'>&#160;&#160;&#160;&#160;&#160;&#160;&#160; .navGrid(item + &#39;Pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { refresh: true, edit: true, add: true, del: true, search: false }, //options <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {height: 575, width: 800,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; reloadAfterSubmit: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; modal: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; processData: &#39;Updating the Complaint...&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; editCaption: &#39;Edit a Complaint&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color: #ff0000;"> onclickSubmit: function(eparms) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return <span style="color: #3366ff;">moreData</span>;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</span></div>
<p>The reason I ask about the last way fo doing it, which does work, is that my data is static and does not need to be set every time during clicking submit on formEdit.</p>
]]></description>
        	        	<pubDate>Thu, 03 Sep 2009 13:28:23 +0300</pubDate>
        </item>
</channel>
</rss>