<?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: Subgrid alert (with possible solution)</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/subgrid-alert-with-possible-solution</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/subgrid-alert-with-possible-solution/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Subgrid alert (with possible solution)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/subgrid-alert-with-possible-solution#p3525</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/subgrid-alert-with-possible-solution#p3525</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The alerts are common for all grids. So the better solution here</p>
<p>is to pass diffrent texts of the alert which I think will be in the next major release.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 14 Dec 2008 07:01:15 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Subgrid alert (with possible solution)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/subgrid-alert-with-possible-solution#p2865</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/subgrid-alert-with-possible-solution#p2865</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thank you for posting this issue.</p>
<p>I will perform some tests and include it in the next release.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 02 Nov 2008 06:54:57 +0200</pubDate>
        </item>
        <item>
        	<title>cjorata on Subgrid alert (with possible solution)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/subgrid-alert-with-possible-solution#p2862</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/subgrid-alert-with-possible-solution#p2862</guid>
        	        	<description><![CDATA[<p>Hi there</p>
<p>i&#39;m having trouble because if you create a grid with a subgrid, both calling the navGrid method :</p>
<p>[main_jqGridCode<br />// blah blah,<br />&#160;subGrid: true,<br />&#160;subGridRowExpanded: function(subgrid_id, row_id) {<br />&#160;&#160;&#160; &#160;&#160;&#160; [subgrid_code].navGrid(&#39;subgridpager_id#&#39;,{</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // custom parameters for alerts<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>].navGrid(&#39;mainpager_id#&#39;,{</p>
<p>&#160; // custom parameters for alerts<br />})</p>
<p>it turns out that you see always the main grid alert parameters: this is because of :</p>
<p>navGrid : function (elem, o, pEdit,pAdd,pDel,pSearch) {<br />&#160;&#160;&#160; &#160;&#160;&#160; o = $.extend(...);<br />&#160;&#160;&#160; &#160;&#160;&#160; return this.each(function() {&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var alertIDs = {themodal:&#39;alertmod&#39;,modalhead:&#39;alerthd&#39;,modalcontent:&#39;alertcnt&#39;};<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; [variosu code ...]<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; createModal(alertIDs,...</p>
<p>so this is called both with the subgrid and last for the main grid, but the IDS remains the same (shortly, the first alert is overwritten ...), i found this solution for me it worked out :</p>
</p>
<p>navGrid : function (elem, o, pEdit,pAdd,pDel,pSearch) {<br />&#160;&#160;&#160; &#160;&#160;&#160; o = $.extend(...);<br />&#160;&#160;&#160; &#160;&#160;&#160; return this.each(function() {</p>
<p>if ( o.isSubgrid )<br />&#160;&#160;&#160; var alertIDs={themodal:&#39;subalertmod&#39;,modalhead:&#39;subalerthd&#39;,modalcontent:&#39;subalertcnt&#39;};<br />else<br />&#160;&#160;&#160; var alertIDs={themodal:&#39;alertmod&#39;,modalhead:&#39;alerthd&#39;,modalcontent:&#39;alertcnt&#39;};&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; [various code ...]<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; createModal(alertIDs,..</p>
<p>but you must remember to insert a isSubgrid:true parameter inside the navGrid call of the subgrid.</p>
<p>CJ</p>
]]></description>
        	        	<pubDate>Sun, 02 Nov 2008 04:04:24 +0200</pubDate>
        </item>
</channel>
</rss>