<?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: Strange problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/strange-problem</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/strange-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Strange problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25342</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25342</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I ocationally find your question because I don&#39;t subscribed the topic: one has on the stackoverflow more better notification system as here.</p>
<p>Abou your question I don&#39;t full understand your problem. How I can see from the fist look at the source code the documatation is correct and beforeCheckValues will be really called with 3 parameters. So if you don&#39;t receive the 3-d parameter you should post the code which you use. On the other side I don&#39;t understand why the 3-d parameter can be interesting bacause you can define separate parameters for Add and for Edit forms (see prmEdit and prmAdd parameters of <a href="/jqgridwiki/doku.php?id=wiki:navigator#definition" target="_blank">navGrid</a>).</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Wed, 07 Dec 2011 23:15:50 +0200</pubDate>
        </item>
        <item>
        	<title>kazi on Strange problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25325</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25325</guid>
        	        	<description><![CDATA[<p>Hi again OlegK,</p>
<p>Can you help me little bit more ? &#160;Because I want to know which &#160;action is started from editing form , I tried &#160; beforeCheckValues Event. &#160; The documentation say that we have 3 parameters ( postdata,formid,mode) . When i use this event i receive just (postdata AND formid ) &#160; Parameter mode -miss. &#160;The validation function is abs. the same (with 3 parameters) .</p>
<p><span style="white-space: pre;"> </span>function validatedata( postdata,formid,mode)</p>
]]></description>
        	        	<pubDate>Mon, 05 Dec 2011 15:38:20 +0200</pubDate>
        </item>
        <item>
        	<title>kazi on Strange problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25319</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25319</guid>
        	        	<description><![CDATA[<p>Hi OlegK !</p>
</p>
<p>Thank you !</p>
]]></description>
        	        	<pubDate>Sat, 03 Dec 2011 21:55:17 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Strange problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25315</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25315</guid>
        	        	<description><![CDATA[<p>Hello kazi,</p>
<p>you should use&#160;<strong>async: false</strong> option of the <strong>$.ajax</strong>.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Sat, 03 Dec 2011 19:36:43 +0200</pubDate>
        </item>
        <item>
        	<title>kazi on Strange problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25313</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/strange-problem#p25313</guid>
        	        	<description><![CDATA[</p>
<p>I have validation function :</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;jQuery("#grid").jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,{add:true,edit:true,del:false},</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;{beforeSubmit:validatedata,closeAfterAdd: false,closeAfterEdit: false }&#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; &#160; &#160; &#160; &#160; &#160; &#160; function validatedata( postdata,formid) {&#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;var message="11111111111111&#8243;;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;var complete=false;&#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $.ajaxSetup({ cache: false });</p>
<p>&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;$.ajax({&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;type : &#39;POST&#39;,&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;url : &#39;d_eval.php&#39;,&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; dataType : &#39;json&#39;,&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; data: postdata,&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; success &#160;: function(postdata) {&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; complete=false;&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;message=postdata.msg;&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;message=&#39;2222222222222&#39;;&#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>&#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><span style="white-space: pre;"> </span>alert(message); &#160; &#160; // &#160;Strange !!!</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; return [complete,message] ;&#160;&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160;</p>
<p>&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;}&#160;</p>
<p>IF i put alert before return , all is ok &#160; (i can see message &#39;2222222222222&#39; on the top of edit form. &#160;If there is no alert on the top is just first message &#160;&#39;11111111111111&#39; &#160; &#160; &#160;! &#160; &#160; &#160; &#160;Is this a bug or i miss something? <img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></p>
]]></description>
        	        	<pubDate>Sat, 03 Dec 2011 18:25:54 +0200</pubDate>
        </item>
</channel>
</rss>