<?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: How to position dialog showed by custom_func ?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func</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/how-to-position-dialog-showed-by-custom_func/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>krokador on How to position dialog showed by custom_func ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28637</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28637</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I have found the following workaround to tinker with the info_dialog element before it is shown:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5336' value='Select Code' data-codeid='sfcode5336' /></p>
<div class='sfcode' id='sfcode5336'>
<pre><div class=&#34;&#34;&#34;sfcode&#34;&#34;&#34;>$(document).ready(function ()
{
    $.jgrid.jqModal = $.extend($.jgrid.jqModal &#124;&#124; {}, {
        beforeOpen: centerInfoDialog
    });
});

function centerInfoDialog()
{
    var $infoDlg = $(&#34;#info_dialog&#34;);
    var $parentDiv = $infoDlg.parent();
    var dlgWidth = $infoDlg.width();
    var parentWidth = $parentDiv.width();

    $infoDlg[0].style.left = Math.round((parentWidth - dlgWidth) / 2) + &#34;px&#34;;
}</div></pre>
</div>
<p><em>Originally posted at: <a href="http://stackoverflow.com/questions/3046736/jqgrid-cell-editing-need-to-position-the-error-message-dialog/15910826#15910826" target="_blank">Stackoverflow</a></em></p>
<p><em> </em> </p>
<p>I hope that helps <img class="wp-smiley" src="/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
]]></description>
        	        	<pubDate>Thu, 11 Apr 2013 23:13:28 +0300</pubDate>
        </item>
        <item>
        	<title>tony on How to position dialog showed by custom_func ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28632</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28632</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>As I say you can not pass parameters to the modal. These are hardcoded.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 10 Apr 2013 21:18:46 +0300</pubDate>
        </item>
        <item>
        	<title>Shanefalco on How to position dialog showed by custom_func ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28628</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28628</guid>
        	        	<description><![CDATA[<p>How can I pass parameters to the modal?</p>
</p>
<p>Or maybe I can somehow scroll to the row in which the error occurs, so user cah see the dialog ?</p>
]]></description>
        	        	<pubDate>Wed, 10 Apr 2013 05:59:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on How to position dialog showed by custom_func ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28616</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28616</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Yes this is true. The dialog is shown in the row where the error is.</p>
<p>Currently there is no way to position the dialog in place where you want.</p>
<p>One possible solution is to pass parameters of the modal, but I need to chack this if this will not make other problems.</p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Tue, 09 Apr 2013 12:05:40 +0300</pubDate>
        </item>
        <item>
        	<title>Shanefalco on How to position dialog showed by custom_func ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28612</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-position-dialog-showed-by-custom_func#p28612</guid>
        	        	<description><![CDATA[<p>Hi!</p>
<p>I&#39;m using jqGrid in inline edit mode and I&#39;ve implemented my custom function to check column value (on add and edit).</p>
<p>My grid is large, but fixed in height, so it has scroll.</p>
<p>When user enter invalid value warning dialog shows to the user, but at the very bottom of the page.</p>
<p>It seems it chooses the position to the row where invalid value is, but I&#39;d like to position it at the center of the window.</p>
<p>How can I do it?</p>
<p>I know how to find it and position, but when?</p>
<p>Is there an event in which I can found this dialog via jQuery and position it?</p>
<p>Thanks</p></p>
]]></description>
        	        	<pubDate>Tue, 09 Apr 2013 09:05:02 +0300</pubDate>
        </item>
</channel>
</rss>