<?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: Session death with multiple grids</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-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/help/session-death-with-multiple-grids/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Renso on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p15104</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p15104</guid>
        	        	<description><![CDATA[<p>Just as an example, the page with multiple grids on the page I have defined as such:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7997' value='Select Code' data-codeid='sfcode7997' /></p>
<div class='sfcode' id='sfcode7997'>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id=&#34;deliveredWrapper&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id=&#34;ListDeliveredVP&#34; class=&#34;scroll&#34; cellpadding=&#34;0&#8243; cellspacing=&#34;0&#8243;&#62;&#60;/table&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id=&#34;ListDeliveredVPPager&#34; class=&#34;scroll&#34; style=&#34;text-align:center;&#34;&#62;&#60;/div&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id=&#34;deliveredVPRecontactWrapper&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id=&#34;ListDeliveredVPRecontact&#34; class=&#34;scroll&#34; cellpadding=&#34;0&#8243; cellspacing=&#34;0&#8243;&#62;&#60;/table&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id=&#34;ListDeliveredVPRecontactPager&#34; class=&#34;scroll&#34; style=&#34;text-align:center;&#34;&#62;&#60;/div&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id=&#34;deliveredProofsWrapper&#34;&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id=&#34;ListDeliveredVPProofs&#34; class=&#34;scroll&#34; cellpadding=&#34;0&#8243; cellspacing=&#34;0&#8243;&#62;&#60;/table&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id=&#34;ListDeliveredVPProofsPager&#34; class=&#34;scroll&#34; style=&#34;text-align:center;&#34;&#62;&#60;/div&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/div&#62;</p>
</div>
]]></description>
        	        	<pubDate>Tue, 23 Feb 2010 20:33:50 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14283</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14283</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Setting id is recommended for proper work. Also you can generate your own id using random generator. The fasted way to every dom manipulation is to query it by ID.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 26 Jan 2010 18:11:02 +0200</pubDate>
        </item>
        <item>
        	<title>ajax head on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14255</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14255</guid>
        	        	<description><![CDATA[</p>
<p>jqGrid is also inserting duplicate id&#39;s when two grids are on the same page for me.</p>
<p>I&#39;m very surprised by this, not sure what to think. I&#39;ve seen it do different things on different days so it could be somewhat dependant on how I have the page organized, but looks like this:&#160;</p>
</p>
<p>2 instances of the same grid on the page, both using the same template to get the grid on the page, using NO ID&#39;s:</p>
<p>&#39;&#60;table class="scroll" cellpadding="0" cellspacing="0"&#62;&#60;/table&#62;&#39;</p>
</p>
<p>then I have two grids added to the page. It works fine with duplicate ids in FFox but blows up on IE7...</p>
</p>
<p>I see this for both grids in the DOM with Firebug:</p>
<p>&#60;div style="width: 625px;" id="gview_" class="ui-jqgrid-view"&#62;&#60;/div&#62;</p>
<p>&#60;div style="display: none;" class="loading ui-state-default ui-state-active" id="load_"&#62;Loading...&#60;/div&#62;</p>
<p>&#60;div class="ui-widget-overlay jqgrid-overlay" id="lui_"&#62;</p>
</p>
<p>Not positive but I think this is why 2 grids are not working on the same page for me, in IE7. Maybe there is an option I&#39;ve overlooked I should be setting, or maybe this is a bug that needs to be fixed because I&#39;m using the grid in a factory that is adding instances of the same grid to the page?</p>
<p>I&#39;d probably prefer to avoid IDs altogether, and short of that be able to set some kind of configuration param that will help me know what ids I can expect for each instance of the grid on a given page.</p>
<p>thx, Jeff-</p>
]]></description>
        	        	<pubDate>Mon, 25 Jan 2010 22:26:22 +0200</pubDate>
        </item>
        <item>
        	<title>Jeff on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14115</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14115</guid>
        	        	<description><![CDATA[</p>
<p>Tony,</p>
<p>I wonder about using id&#39;s in a case like this at all&#8230; seems like the template should never have id&#39;s, in the case where I want to reuse the same template on the same page (imagine a desktop with instances of a grid class, all having a template with a repeated id). This won&#39;t work, simple DOM rules.</p>
<p>I&#39;ve been using:</p>
<p>$(.classname)[0]&#160; or $(.classname).jqGrid</p>
<p>but it only works the first time to instantiate the grid, but I can&#39;t use it get a handle to the grid later to use it to modify the grid dynamically.</p>
<p>I realize this puts several elements on a page with the same classname, but I can use the windowing system to contexualize the search to the current context of my widget&#39;s window (window framework) like this:</p>
<p>$(&#8221;table.scroll&#8221;, this.$content)&#160;&#160;&#160; &#60;&#8211; jquery allows second item, to scope search to current context, thus 1 element is returned</p>
</p>
<p>I did an inspect and see that the grid resets the class name to <strong>.ui-jqgrid-btable.</strong>&#160; I use that, and it works&#8230;</p>
<p>is this sanctioned to use to get a handle to the grid or is there a better way? Should I put the grid in a var and refer to the var instead? Of course I&#39;ll have to declare the var high enough up that I can get to it at the page level WITHOUT having a handle to the grid to get it..</p>
<p>I&#39;ve searched and searched, I don&#39;t see ANY examples in the docs that deal with this and I don&#39;t see the subject discussed, but web 2.0 is all about avoiding IDs when possible to avoid DOM conflicts, and possibly the reason this person has a problem, if they repeat id&#39;s on the page.</p>
]]></description>
        	        	<pubDate>Fri, 22 Jan 2010 04:50:58 +0200</pubDate>
        </item>
        <item>
        	<title>Renso on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14092</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14092</guid>
        	        	<description><![CDATA[<p>Just as a note, I have 5 grids on one page in a particluar instance with no issues. When you select a row on the first grid (onSelectRow) it calls the other 4 grids and loads their data. Each one of these grids suports editing and require lookup data (drop downs) in the form edit mode so I get the data within each grids declaration with the jQuery ajax call and am sure to use the</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8748' value='Select Code' data-codeid='sfcode8748' /></p>
<div class='sfcode' id='sfcode8748'>async: false</div>
<p>property, which ensures that each grid is loaded without overlapping sessions or threads.</p>
</p>
<p>On another note Darren, I keep the previous value of the number of rows per page on my server (Mvc app) and when it posts back for any reason I check to see if the number of rows per page has chnaged, and if so, send them back to page 1. However, I was using a sessions variable MyjqGridRowsPerPage and since I have many grids on the same page will need to create a different one for every grid, seems like a lot of work, how did you handle this situation with the user <span style="color: #ff0000;"><strong>changing the number of rows per page</strong></span>? Tony do you have any suggestions?</p>
]]></description>
        	        	<pubDate>Wed, 20 Jan 2010 23:11:43 +0200</pubDate>
        </item>
        <item>
        	<title>Darren on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14084</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p14084</guid>
        	        	<description><![CDATA[<p>Ok &#8212; the code works.</p>
</p>
<p>I had &#8221; instead of &#8220;, which Firefox at least was reading as an error.&#160; Thanks again for the assistance.</p>
]]></description>
        	        	<pubDate>Wed, 20 Jan 2010 20:59:30 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p13861</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p13861</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m not sure that this is a jqGrid problem</p>
<p>Could you please provide a link to the problem?</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 13 Jan 2010 19:15:14 +0200</pubDate>
        </item>
        <item>
        	<title>Darren on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p13814</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p13814</guid>
        	        	<description><![CDATA[<p>Sorry for my delayed response on this (and thank you for your assistance!) &#8211;</p>
</p>
<p>It appears that setting this up like so :</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3679' value='Select Code' data-codeid='sfcode3679' /></p>
<div class='sfcode' id='sfcode3679'>
<p>jQuery(document).ready(function(){ <br />&#160;&#160;&#160;&#160; jQuery(&#8221;#grid&#8221;).jqGrid({<br />&#160;&#160;&#160;&#160; &#8211;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype:&#39;local&#39;,<br />&#160;&#160;&#160;&#160; &#8211;</p>
<p>&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160; $(&#8221;#grid&#8221;).jqGrid(&#39;setGridParam&#39;,{datatype:&#39;json&#39;});</p>
<p>&#160;&#160;&#160;&#160; setTimeout(function(){$(&#8221;#grid&#8221;).trigger(&#8221;reloadGrid&#8221;)}, 100 );</p>
<p>});</p>
</div>
<p>renders the script inoperable (no grid appears).</p>
</p>
<p>Firebug reports :</p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: &#39;Times New Roman&#39;,&#39;serif&#39;;">illegal  character</span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family: &#39;Times New Roman&#39;,&#39;serif&#39;;">jQuery(&#8221;#grid&#8221;).jqGrid(&#39;setGridParam&#39;,{datatype:&#39;json&#39;});</span></p></p>
]]></description>
        	        	<pubDate>Wed, 13 Jan 2010 07:38:34 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p13654</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p13654</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Try to implemet the following logic for the 3 grids:</p>
<p>Create the grid initiallly with datatype local and then set the data type to json and trigger with setTimeout - i.e.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1150' value='Select Code' data-codeid='sfcode1150' /></p>
<div class='sfcode' id='sfcode1150'>
<p>$("#grid").jqGrid({</p>
<p>...</p>
<p>datatype:&#39;local&#39;,</p>
<p>...</p>
<p>});</p>
<p>$("#grid").jqGrid(&#39;setGridParam&#39;,{datatype:&#39;json&#39;});</p>
<p>setTimeout(function(){$("#grid").trigger("reloadGrid")}, 100 );</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 07 Jan 2010 20:34:02 +0200</pubDate>
        </item>
        <item>
        	<title>Darren on Session death with multiple grids</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p13616</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/session-death-with-multiple-grids#p13616</guid>
        	        	<description><![CDATA[<p>I have three grids that load on the page (A, B, and C).&#160; A points to B and C.</p>
<p>On the inital load all three grids attempt to load, but this causes the PHP session to become lost.&#160; Is there any way to add a delay to the ajax calls or a queue perhaps?</p>
]]></description>
        	        	<pubDate>Wed, 06 Jan 2010 20:34:23 +0200</pubDate>
        </item>
</channel>
</rss>