<?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: CellEdit: what should the POST return ?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/celledit-what-should-the-post-return</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/celledit-what-should-the-post-return/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on CellEdit: what should the POST return ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/celledit-what-should-the-post-return#p27204</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/celledit-what-should-the-post-return#p27204</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>It is a developer decision what should be returned from the server.</p>
<p>We just make a standard ajax call.</p>
</p>
<p>If you get a alert box with a error this mean that there is a error in the ajax request.</p>
<p>In the ajax request we just define a error function somthing like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1776' value='Select Code' data-codeid='sfcode1776' /></p>
<div class='sfcode' id='sfcode1776'>
<p>$.ajax(</p>
<p>...</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; error:function(res,stat,err) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$("#lui_"+$.jgrid.jqID($t.p.id)).hide();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$t.grid.hDiv.loading = false;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$($t).triggerHandler("jqGridErrorCell", [res, stat, err]);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if ($.isFunction($t.p.errorCell)) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$t.p.errorCell.call($t, res,stat,err);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$($t).jqGrid("restoreCell",iRow,iCol);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;} else {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$.jgrid.info_dialog($.jgrid.errors.errcap,res.status+" : "+res.statusText+"&#60;br/&#62;"+stat,$.jgrid.edit.bClose);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$($t).jqGrid("restoreCell",iRow,iCol);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}</p>
<p>...</p>
</div>
<p>with other words - the error come from your server and not from jqGrid.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 27 Aug 2012 14:30:25 +0300</pubDate>
        </item>
        <item>
        	<title>r.thal on CellEdit: what should the POST return ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/celledit-what-should-the-post-return#p27200</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/celledit-what-should-the-post-return#p27200</guid>
        	        	<description><![CDATA[<p>When doing a CellEdit, a POST will be sent to the server. What should that POST return ?</p>
<p>If it returns nothing, jqGrid will alert with a parse error.</p>
<p>If it returns the same data as the original GET (when displaying the grid in View mode) then jqGrid seems to ignore what is returned.</p>
<p>Documentaiton only talks about the parameters of the POST but does not say what the POST should return.</p>
]]></description>
        	        	<pubDate>Sat, 25 Aug 2012 15:56:56 +0300</pubDate>
        </item>
</channel>
</rss>