<?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: Problem using Form Edit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-using-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/problem-using-form-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Problem using Form Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-using-form-edit#p3418</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-using-form-edit#p3418</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>1) One possible reason is that you do not have uniquie id for the</p>
<p>rows. If we have rows which id&#39;s equal the grid selection will not work</p>
<p>correctly.</p>
<p>2) It is goo to see docs.&#160;</p>
<p>what does [false, "Message", ""] mean?</p>
<p>The first parameter indicates if the operation is successful</p>
<p>true - success, false - no success.</p>
<p>if the operation is not successfull then the message - "Message" will appear</p>
<p>to the user to indicates the type of error.</p>
<p>The third parameter is only valid if used when inserting new row.</p>
<p>If this parameter is empty the new row ID&#160; becomes:</p>
<p>1) if the parameter reloadAfterSubmit : true - the new value from server</p>
<p>2) reloadAfterSubmit :false&#160; - the number of records + 1</p>
<p>If this parameter is not empty - the row ID is set with this value.</p>
<p>Typical you should return this from server when the data is submited&#160;</p>
<p>(inserted) -</p>
<p>i.e. the server return the new ID which can be set in the grid.</p>
<p>Hope this help</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 04 Dec 2008 12:31:23 +0200</pubDate>
        </item>
        <item>
        	<title>a222493 on Problem using Form Edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-using-form-edit#p3395</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-using-form-edit#p3395</guid>
        	        	<description><![CDATA[<p>HI,</p>
<p>I&#39;m having trouble Form Editing.&#160; I use the "navGrid" which pops up a form for the row that I selected.&#160; I press submit and the server saves the data and posts back a good response.&#160; Then I click the "X" to close the form.</p>
<p>However, now the grid is behaving strange.&#160; When I click on another row, it is highlighted but the first row stays highlighted as well.&#160; It looks like the grid changes to multi select...</p>
<p>1) Does anyone know why this happens?<br />2) What are the fields in the return array?&#160; (what does [false, "Message", ""] mean?</p>
<p>Here is my function that is fired after the "afterSubmit" event:</p>
<p>&#160;&#160;&#160;&#160; function checksave(serverStatus, aPostData) <br />&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var jsonText = serverStatus.responseText;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var mydata = eval(&#39;(&#39; + jsonText + &#39;)&#39;);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (mydata.status == "False") <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return [false, mydata.status, ""];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; else <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return [true, "", ""];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; }</p>
]]></description>
        	        	<pubDate>Tue, 02 Dec 2008 14:51:17 +0200</pubDate>
        </item>
</channel>
</rss>