<?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: Setting contentType for form edit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/setting-contenttype-for-form-edit</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/setting-contenttype-for-form-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Setting contentType for form edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setting-contenttype-for-form-edit#p21215</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setting-contenttype-for-form-edit#p21215</guid>
        	        	<description><![CDATA[<p>Look at edit form <a href="/jqgridwiki/doku.php?id=wiki:form_editing#properties" target="_blank">settungs</a>. I recommend you to change the settings for all edit/add form dialogs in the following way:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2830' value='Select Code' data-codeid='sfcode2830' /></p>
<div class='sfcode' id='sfcode2830'>jQuery.extend(jQuery.jgrid.edit, {closeAfterAdd: true,closeAfterEdit: true,recreateForm: true});</div>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 07 Dec 2010 22:27:35 +0200</pubDate>
        </item>
        <item>
        	<title>jdege on Setting contentType for form edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setting-contenttype-for-form-edit#p21214</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setting-contenttype-for-form-edit#p21214</guid>
        	        	<description><![CDATA[<p>I click the "Submit" button, and I&#39;m getting to the webservice on the server, and getting the data back.&#160; The grid updates fine, but the edit form never closes.&#160; Do I need to provide an explicit success function, to close the edit form?</p>
]]></description>
        	        	<pubDate>Tue, 07 Dec 2010 22:01:53 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Setting contentType for form edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setting-contenttype-for-form-edit#p21210</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setting-contenttype-for-form-edit#p21210</guid>
        	        	<description><![CDATA[<p>Look at <a href="http://stackoverflow.com/questions/3917102/jqgrid-add-row-and-send-data-to-webservice-for-insert/3918615#3918615" target="_blank">here</a>&#160;and <a href="http://stackoverflow.com/questions/2675625/setting-the-content-type-of-requests-performed-by-jquery-jqgrid/2678731#2678731" target="_blank">here</a>. I hope this example will be enough to make your code working.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 07 Dec 2010 19:45:59 +0200</pubDate>
        </item>
        <item>
        	<title>jdege on Setting contentType for form edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setting-contenttype-for-form-edit#p21208</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setting-contenttype-for-form-edit#p21208</guid>
        	        	<description><![CDATA[<p>I&#39;m trying to get form edit to work, against a .ASMX web service.&#160; For this to work, I need to set the contentType on the ajax request to "application/json".</p>
</p>
<p>I can see where, in grid.formedit.js, the function postIt() constructs an ajaxOptions object, by extending $.jgrid.ajaxOptions and rp_ge.ajaxEditOptions.&#160; My problem is that when I step through the code, both of these objects are empty.&#160;</p>
</p>
<p>I&#39;ve set ajaxOptions, ajaxGridOptions, ajaxRowOptions, and ajaxEditOptions on the grid, and none of these seem to be picked up by either $.jgrid.ajaxOptions and rp_ge.ajaxEditOptions in formedit&#39;s postIt().</p>
</p>
<p>Where do I need to set contentType, so that it is used in the ajax call after editing an edit form?</p>
]]></description>
        	        	<pubDate>Tue, 07 Dec 2010 19:24:19 +0200</pubDate>
        </item>
</channel>
</rss>