<?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: make alertmod dialog unique for every grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/make-alertmod-dialog-unique-for-every-grid</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/make-alertmod-dialog-unique-for-every-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>payne26 on make alertmod dialog unique for every grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/make-alertmod-dialog-unique-for-every-grid#p28780</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/make-alertmod-dialog-unique-for-every-grid#p28780</guid>
        	        	<description><![CDATA[<p>I downloaded the new jqGrid and looked at the source to verify I am running the correct version of the code, but I am still having the problem where the alertmod dialog appears sometimes off of the visible page. My page has several grids and if you scroll down to the bottom and attempt to edit an item without first selecting the row, the alert dialog is displayed but it is at the top of the page and therefore not visible by the user. Is there a way to have this dialog display&#160;relative to the&#160;grid that triggered it?</p>
]]></description>
        	        	<pubDate>Tue, 14 May 2013 02:31:09 +0300</pubDate>
        </item>
        <item>
        	<title>tony on make alertmod dialog unique for every grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/make-alertmod-dialog-unique-for-every-grid#p27331</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/make-alertmod-dialog-unique-for-every-grid#p27331</guid>
        	        	<description><![CDATA[<p>Oleg,</p>
<p>Thanks. Fixed in GitHub</p>
</p>
<p>Best Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Fri, 14 Sep 2012 15:35:28 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on make alertmod dialog unique for every grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/make-alertmod-dialog-unique-for-every-grid#p27301</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/make-alertmod-dialog-unique-for-every-grid#p27301</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>there are problem with position of the alertmod dialog (the warning dialog created by <strong>navGrid</strong> to inform the user about no rows selected) if more aer one grid exist on the page. The current implementation share the same dialog. So the option like <strong>alerttext</strong>, <strong>alertcap</strong>, <strong>alerttop</strong>, <strong>alertleft</strong> etc. will be usged only from the first grid which will be created on the page. The same problem one fixed in Add/Edit/Delete/View dialogs by adding unique ids used for the gialog. I think the same way one could you here too.</p>
<p>So I suggest to change <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.1/js/grid.formedit.js#L1731" target="_blank">the line</a>&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7834' value='Select Code' data-codeid='sfcode7834' /></p>
<div class='sfcode' id='sfcode7834'>var alertIDs = {themodal:&#39;alertmod&#39;,modalhead:&#39;alerthd&#39;,modalcontent:&#39;alertcnt&#39;},</div>
<p>to the line like the following</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1976' value='Select Code' data-codeid='sfcode1976' /></p>
<div class='sfcode' id='sfcode1976'>var alertIDs = {themodal: &#39;alertmod_&#39; + this.p.id, modalhead: &#39;alerthd_&#39; + this.p.id,<br />modalcontent: &#39;alertcnt_&#39; + this.p.id},</div>
<p>After the changes it will be probably logacal to change <strong>insertSelector</strong>, <strong>posSelector</strong>&#160;options of <strong>$.jgrid.createModal</strong>&#160;in <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.1/js/grid.formedit.js#L1749" target="_blank">the line</a>&#160;from <strong>"",""</strong> to <strong>"#gview_"+$.jgrid.jqID($t.p.id),$("#gbox_"+$.jgrid.jqID($t.p.id))[0]</strong>&#160;like the same as in anothe places (see <a href="https://github.com/tonytomov/jqGrid/blob/v4.4.1/js/grid.formedit.js#L192-198" target="_blank">here</a> for example) of the form editing code. In the case the alertmod dialog will be child of gbox instead of the child of HTML body. It could improve the behavior of recreating of grid with respect of <strong>GridUnload</strong> or direct jQuery methods.</p>
<p>Best regards<br />Oleg</p>
<p>P.S. See <a href="http://stackoverflow.com/a/12368641/315935" target="_blank">the answer</a>&#160;which describe the problem and which confirm that the solution works.</p>
]]></description>
        	        	<pubDate>Tue, 11 Sep 2012 18:27:57 +0300</pubDate>
        </item>
</channel>
</rss>