<?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: Inline Editing editRow aftersavefunc not firing</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-editrow-aftersavefunc-not-firing</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/inline-editing-editrow-aftersavefunc-not-firing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Inline Editing editRow aftersavefunc not firing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-editrow-aftersavefunc-not-firing#p11126</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-editrow-aftersavefunc-not-firing#p11126</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Fixed. Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 27 Oct 2009 03:59:37 +0200</pubDate>
        </item>
        <item>
        	<title>pgtip on Inline Editing editRow aftersavefunc not firing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-editrow-aftersavefunc-not-firing#p11088</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-editrow-aftersavefunc-not-firing#p11088</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Thanks for the help. Just to complete the thread.</p>
</p>
<p>Using successfunc (in my case called &#39;refresh&#39;) with what you said</p>
<p>reads something like</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6472' value='Select Code' data-codeid='sfcode6472' /></p>
<div class='sfcode' id='sfcode6472'>
<p>function refresh(response)</p>
<p>{</p>
<p>var xml = response.responseXML.documentElement;</p>
<p>alert(xml.getElementsByTagName("errorcnt")[0].firstChild.data):</p>
<p>}</p>
</div>
<p>gives me the number inside <code>&#60;errorcnt&#62;12&#60;/errorcnt&#62;.</code></p>
</p>
<p>Thanks,</p></p>
]]></description>
        	        	<pubDate>Mon, 26 Oct 2009 13:37:34 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Inline Editing editRow aftersavefunc not firing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-editrow-aftersavefunc-not-firing#p11038</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-editrow-aftersavefunc-not-firing#p11038</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is a long story to explain - short maybe it should be fixed.</p>
<p>1. in successfunc is passed the response - so you should response.responseXML (in your case)</p>
<p>2. in aftersavefunc is passed response.responseText</p>
<p>The fix should pass the response on both events.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 23 Oct 2009 11:35:19 +0300</pubDate>
        </item>
        <item>
        	<title>pgtip on Inline Editing editRow aftersavefunc not firing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-editing-editrow-aftersavefunc-not-firing#p10957</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-editing-editrow-aftersavefunc-not-firing#p10957</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I have searched the Help forum without an answer I can copy/deduce from. I want to</p>
<p>capture what is returned from the editurl POST. I have the following:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4698' value='Select Code' data-codeid='sfcode4698' /></p>
<div class='sfcode' id='sfcode4698'>
<p>onSelectRow:&#160;&#160;&#160; function(id)<br />{<br />if (id &#38;&#38; id !== lastsel)<br />{<br />jQuery(&#39;#insertErrors&#39;).restoreRow(lastsel);<br />jQuery(&#39;#insertErrors&#39;).editRow(id, true, &#39;&#39;,</p>
<p>refresh, &#39;&#39;, &#39;&#39;, savedResponse, &#39;&#39;, &#39;&#39;);<br />lastsel = id;<br />}<br />},</p>
<p>editurl:&#160;&#160;&#160; &#160;&#160;&#160; &#39;upload_row_validate.php?&#38;manuf=&#39; + manuf + &#39;&#38;link=&#39; +</p>
<p>errorlink + &#39;&#38;postdt=&#39; + postdt</p>
</div>
<p>refresh fires (in the successfunc parameter role) which changes the url and</p>
<p>reloads the grid after upload_row_validate.php has done its thing &#8211; working fine.</p>
<p>I have created functions for the different option in editRow (e.g. oneditfunc) to</p>
<p>make sure my parameters were correct &#8211; they all fire except the aftersavefunc</p>
<p>(called savedResponse here).</p>
</p>
<p>The editurl returns in Firefox firebug:</p>
<div class="netInfoResponseText netInfoText">
<p><input type='button' class='sfcodeselect' name='sfselectit4831' value='Select Code' data-codeid='sfcode4831' /></p>
<div class='sfcode' id='sfcode4831'><code>&#60;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&#62;<br /></code><code>&#60;row&#62;&#60;saved&#62;True&#60;/saved&#62;&#60;insertcnt&#62;1&#60;/insertcnt&#62;&#60;errorcnt&#62;12&#60;/errorcnt&#62;&#60;/row&#62;</code></div>
<pre><code><br /><br />I thought the savedReponse would then supply the rowid &#38; server <br />response so the function reads:<br /><br /></code></pre>
<p><input type='button' class='sfcodeselect' name='sfselectit879' value='Select Code' data-codeid='sfcode879' /></p>
<div class='sfcode' id='sfcode879'>function savedResponse(rowid, responseXML)<br /> {<br /> alert(rowid);<br /> alert(responseXML);<br /> }</div>
<pre><code><br />savedResponse does not fire.<br /><br />I tried inserting the line <br /><br /></code></pre>
<p><input type='button' class='sfcodeselect' name='sfselectit6844' value='Select Code' data-codeid='sfcode6844' /></p>
<div class='sfcode' id='sfcode6844'>jQuery(&#39;#insertErrors&#39;).saveRow(id, &#39;&#39;, &#39;&#39;, &#39;&#39;, savedReponse, &#39;&#39;, &#39;&#39;);</div>
<pre><br /><code><br />after <br /><br /></code></pre>
<p><input type='button' class='sfcodeselect' name='sfselectit7082' value='Select Code' data-codeid='sfcode7082' /></p>
<div class='sfcode' id='sfcode7082'>jQuery(&#39;#insertErrors&#39;).editRow(id, true, &#39;&#39;, refresh, &#39;&#39;, &#39;&#39;, savedResponse, &#39;&#39;, &#39;&#39;);</div>
<pre><br /><code><br />and as soon as I edit the row - saveRow fires (and <br />savedResponse is called) which again suggests my parameters <br />are correctly positioned though I want saveRow to fire <br />after editRow &#39;enter&#39; is received.<br /><br />The POST response of the editurl is 200 OK so I don&#39;t know <br />what &#39;triggers&#39; aftersavefunc.<br /><br />I thought perhaps it is the successfunc that returns the <br />info so I tried that - I get an object XMLHttpRequest passed <br />to it which is not what I need.<br /><br />Any help/pointers appreciated. <br /><br />Thank you,<br /><br />[What jqGrid can do and how you can mix and match - very impressive.]<br /><br /></code></pre>
</div>
]]></description>
        	        	<pubDate>Wed, 21 Oct 2009 11:16:54 +0300</pubDate>
        </item>
</channel>
</rss>