<?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 data to postdata in beforeSubmit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/add-data-to-postdata-in-beforesubmit</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-data-to-postdata-in-beforesubmit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>yandaomin on Add data to postdata in beforeSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-data-to-postdata-in-beforesubmit#p18686</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-data-to-postdata-in-beforesubmit#p18686</guid>
        	        	<description><![CDATA[<p>Hi,Calou:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; the version of your download jqgrid is newest?ã€€My jqgrid version is 3.5.</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; I also use beforeSubmit event to add some parameter to postdata. and as same as your code.</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; But the difference is on the end&#160; of the function must return something to jqgrid,let it know beforeSubmit function is ok.</p>
<p>the code</p>
<p>beforeSubmit: function(postdata, formid){<br /> postdata.something = &#39;somevalue&#39;;<br /> return return[true,&#39;&#39;]; <br /> } </p>
<p> good luck.</p>
]]></description>
        	        	<pubDate>Tue, 20 Jul 2010 05:13:19 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Add data to postdata in beforeSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-data-to-postdata-in-beforesubmit#p17687</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-data-to-postdata-in-beforesubmit#p17687</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>According to the documentation:</p>
<p><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></p>
<p>this event is not applicable for your case. Moreover you should return a array whan you use the event.</p>
<p>I suggest you to use</p>
<p>onclickSubmit event or serializeEditData</p>
<p>Please look at the same place into the documentation</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 02 Jun 2010 20:58:06 +0300</pubDate>
        </item>
        <item>
        	<title>Calou on Add data to postdata in beforeSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/add-data-to-postdata-in-beforesubmit#p17608</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/add-data-to-postdata-in-beforesubmit#p17608</guid>
        	        	<description><![CDATA[<p>Hi,<br /> I&#39;d like to add some data to postdata before the plugin submit the form to the correct file.<br /> I tried this :</p>
</p>
<pre>$(&#39;#myid&#39;).jqGrid(&#39;navGrid&#39;, &#39;#pager&#39;,
		{edit: true, add: true, del: true}, 
        {
			beforeSubmit: function(postdata, formid){
				postdata.something = &#39;somevalue&#39;;
			} 
        });</pre>
</p>
<p>But when I submit, I got this error :</p>
<p>Uncaught TypeError: Cannot read property &#39;0&#39; of undefined &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; jquery.jqGrid.min.js:222</p>
</p>
<p>Any idea ? Thanks 🙂</p>
]]></description>
        	        	<pubDate>Mon, 31 May 2010 14:44:38 +0300</pubDate>
        </item>
</channel>
</rss>