<?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 with validation dialog for inline editing in master/detail grids</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-validation-dialog-for-inline-editing-in-masterdetail-grids</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/bugs/problem-with-validation-dialog-for-inline-editing-in-masterdetail-grids/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on problem with validation dialog for inline editing in master/detail grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-validation-dialog-for-inline-editing-in-masterdetail-grids#p17152</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-validation-dialog-for-inline-editing-in-masterdetail-grids#p17152</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thank you.&#160; Fixed.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 13 May 2010 19:08:32 +0300</pubDate>
        </item>
        <item>
        	<title>egocks on problem with validation dialog for inline editing in master/detail grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-validation-dialog-for-inline-editing-in-masterdetail-grids#p17138</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-validation-dialog-for-inline-editing-in-masterdetail-grids#p17138</guid>
        	        	<description><![CDATA[<p>This is a follow-up to the topic <a href="/blog/?page_id=393/bugs/2-problems-with-validation-dialogs/" target="_blank">"2 Problems with validation dialogs"</a>. This time, there&#39;s a problem with the way jqGrid positions the info_dialog.</p>
<p>The scenario: I have 2 grids on the same page (basically a master/detail grid scenario), and I&#39;m doing an inline edit on row #4 of grid #2. Now, when that row has a validation error, the info_dialog is displayed on top of row #4 of grid #1 (instead of on grid #2).</p>
<p>The solution is easy, though. I found which line to change in the file grid.inlinedit.js&#8230;</p>
</p>
<p>The ff. line:</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit5299' value='Select Code' data-codeid='sfcode5299' /></p><div class='sfcode' id='sfcode5299'><span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;>
if (cv[0] === false){ // line #143, under the saveRow function
<br />&#160;&#160; &#160;try {
<br />&#160;&#160; &#160;&#160;&#160; &#160;var positions =</span> <strong>findPos($(&#34;#&#34;+rowid)[0]);</strong>
<br />&#160;&#160; &#160;&#160;&#160; &#160;<span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;>info_dialog($.jgrid.errors.errcap,cv[1],$.jgrid.edit.bClose,{left:positions[0],top:positions[1]});
<br />&#160;&#160; &#160;} catch (e) {
<br />&#160;&#160; &#160;&#160;&#160; &#160;alert(cv[1]);
<br />&#160;&#160; &#160;}
<br />&#160;&#160; &#160;return;
<br />}</span></div></pre>
<p>&#8230;should be changed to:</p>
<pre><p><input type='button' class='sfcodeselect' name='sfselectit4161' value='Select Code' data-codeid='sfcode4161' /></p><div class='sfcode' id='sfcode4161'><span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;>
//...
<br />var positions = </span>findPos($(&#34;#&#34;+rowid<span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;><strong>,$($t)</strong></span>)[0]);
<br /><span style=&#34;&#34;&#34;&#34;color:&#34;&#34;&#34;>info_dialog($.jgrid.errors.errcap,cv[1],$.jgrid.edit.bClose,{left:positions[0],top:positions[1]});</span></div></pre>
<p>So that it will get the position within the context of the current grid only. (Tested in IE6, using jqGrid v3.6.4)</p>
</p>
<p>Regards,</p>
<p>egocks</p>
]]></description>
        	        	<pubDate>Thu, 13 May 2010 11:03:34 +0300</pubDate>
        </item>
</channel>
</rss>