<?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: Expandos (IE) property not complete after showing the modal edit window</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window</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/expandos-ie-property-not-complete-after-showing-the-modal-edit-window/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ederome on Expandos (IE) property not complete after showing the modal edit window</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17076</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17076</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>Do it like this</p>
<p>jQuery("table#TestGrid]")[0],</p>
<p>or simple</p>
<p>jQuery("#TestGrid]")[0],</p>
</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<p>Hi Tony,</p>
<p>In the context of trying to access the grid, in the datatype property,<br />after doing a show of the modal pop-up to edit a row of the grid:</p>
<p>I&#39;ve tried what you suggested,&#160;with the jQuery("table#TestGrid]")[0].<br />Unfortunately that gives me "Object doesn&#39;t support this property or method".</p>
<p>But if I use this way : jQuery("table[id*=TestGrid]")[0] then<br />that gives me the grid Object with certain methods but not the addJSONData() method<br />I&#39;m looking for. That method is "usually" found in the Expandos property of the grid,<br />at least in IE 8. The Expandos property is there, but with only the cellpading <br />property. From what I&#39;ve seen, it should contain many methods, like addJSONData.</p>
<p>Also interestingly, when I do this : jQuery("table[id*=TestGrid]")[1],<br />then I also get a grid object, but with NO Expandos property at all.</p>
<p>Also, when I do this : jQuery("table[id*=TestGrid]")[2], then I<br />get the Expandos property with the following stuff:</p>
<p>p<br />jQuery1273588140348<br />updateColumns<br />formatCol<br />sortData<br />updatepager<br />formatter<br />grid (object)<br />addXmlData<br />addJSONData</p>
<p>So to recapitulate, if I don&#39;t DO a show of the modal pop-up,<br />the following jQuery("table[id*=TestGrid]")[0] will give me <br />exactly what jQuery("table[id*=TestGrid]")[2] gives me if I DO<br />a show of the modal pop-up. So if I don&#39;t show up the modal <br />edit view in the pop-up, the following will always work:<br />jQuery("table[id*=TestGrid]")[0].<br />But if I show up the modal pop-up, then I need to do this:<br />jQuery("table[id*=TestGrid]")[2]</p>
<p>I suppose this is not normal, not sure.</p>
<p>Thanks for your help on this,<br />Eric</p>
<hr />
]]></description>
        	        	<pubDate>Tue, 11 May 2010 17:50:36 +0300</pubDate>
        </item>
        <item>
        	<title>ederome on Expandos (IE) property not complete after showing the modal edit window</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17072</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17072</guid>
        	        	<description><![CDATA[</p>
<p>Thank you Tony, I will try that.</p>
</p>
<p>I was wondering why do we need to put in the [0] at then end, it&#39;s not clear to me why. I don&#39;t see why the need for an array ?</p>
<p>Thank you in advance very much.</p>
<p>Eric</p></p>
]]></description>
        	        	<pubDate>Tue, 11 May 2010 16:23:41 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Expandos (IE) property not complete after showing the modal edit window</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17063</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17063</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Do it like this</p>
<p>jQuery("table#TestGrid]")[0],</p>
<p>or simple</p>
<p>jQuery("#TestGrid]")[0],</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 11 May 2010 14:40:54 +0300</pubDate>
        </item>
        <item>
        	<title>ederome on Expandos (IE) property not complete after showing the modal edit window</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17045</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17045</guid>
        	        	<description><![CDATA[<p>Hello again,</p>
<p>I forgot to mention, that if we DO NOT show the modal edit window of the grid, then our code in the datatype property "sees" the Expandos property correctly, this way : var thegrid = jQuery("table[id*=TestGrid]")[0];&#160;&#160; and not&#160; having to do this:</p>
<p>var thegrid = jQuery("table[id*=TestGrid]")[2];&#160;&#160;&#160;//?????</p>
<p>Here is the essential code in the datatype property:</p>
<p>$.ajax({</p>
<p>dataType:</p>
<p>url: query,</p>
<p>success:</p>
<p>
"json",function (data, textStatus, xhr) {//pageIndex = xhr.getResponseHeader(&#39;CurrentPageIndex&#39;);
</p>
<p>loadPortfoliosComplete(data);</p>
<p>},</p>
<p>error:</p>
<p>alert(errorThrown +</p>
<p>}</p>
<p>});</p>
<p>function (xhr, status, errorThrown) {&#39;\n&#39; + status + &#39;\n&#39; + xhr.statusText);<span id="_marker">&#160;</span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"></span></span></p>
<p>$.ajax({</p>
<p>dataType:</p>
</p>
<p><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">"json"</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">,</span></span></p>
<p>url: query,</p>
<p>success:</p>
</p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">function</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> (data, textStatus, xhr) {</p>
<p></span></p>
<p></span></p>
<p><span style="font-family: Consolas; color: #006400; font-size: x-small;"><span style="font-family: Consolas; color: #006400; font-size: x-small;"><span style="font-family: Consolas; color: #006400; font-size: x-small;">//pageIndex = xhr.getResponseHeader(&#39;CurrentPageIndex&#39;);</span></span></span></p>
<p><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"></p>
<p></span></p>
<p></span></p>
<p><span style="font-family: Consolas; color: #006400; font-size: x-small;"><span style="font-family: Consolas; color: #006400; font-size: x-small;"><span style="font-family: Consolas; color: #006400; font-size: x-small;">//pageSize = xhr.getResponseHeader(&#39;CurrentPageSize&#39;);</span></span></span></p>
<p><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"></span></span></p>
<p>loadPortfoliosComplete(data);</p>
<p>},</p>
<p>error:</p>
</p>
<p><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;"><span style="font-family: Consolas; color: #0000ff; font-size: x-small;">function</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> (xhr, status, errorThrown) {</span></span></p>
<p>alert(errorThrown +</p>
</p>
<p><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">&#39;\n&#39;</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> + status + </span></span><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;"><span style="font-family: Consolas; color: #800000; font-size: x-small;">&#39;\n&#39;</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> + xhr.statusText);</span></span></p>
<p>}</p>
<p>});</p></p>
]]></description>
        	        	<pubDate>Tue, 11 May 2010 00:28:58 +0300</pubDate>
        </item>
        <item>
        	<title>ederome on Expandos (IE) property not complete after showing the modal edit window</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17044</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/expandos-ie-property-not-complete-after-showing-the-modal-edit-window#p17044</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>We have a weird&#160;thing affecting&#160;the Expandos property of the grid.</p>
<p>We have our&#160;jqGrid working fine with&#160;its&#160;data loading and server side paging of the data.</p>
<p>But after we show-up&#160;the modal pop-up (the one built-in the jqGrid),&#160;so after a post of the data to a service (url) or after<br />a cancel of the window, the reloadAfterSubmit does not seem to fire. But worse, when&#160;we try to do paging on the grid, <br />the code we have in the datatype property fires and&#160;when we do this:&#160;var thegrid = jQuery("table[id*=TestGrid]")[0];</p>
<p>then the grid has nothing in the&#160;Expandos property, it only contains : cellpading.</p>
<p>But it we do this (after showing up the modal window, in the datatype property):</p>
<p>var thegrid = jQuery("table[id*=TestGrid]")[2];</p>
<p>.... then I see all the functions usually found in the Expandos property of the grid.&#160; BUT WHY do I need to do&#160;[2] on the selector ???</p>
<p>I am new to jqGrid, maybe I&#39;m missing something. Please advise.&#160; Thanks!!</p>
<p>PS: I&#39;m using IE 8 and the latest version of jqGrid (3.6.5).&#160; &#160;</p>
<p>Eric</p>
]]></description>
        	        	<pubDate>Tue, 11 May 2010 00:21:56 +0300</pubDate>
        </item>
</channel>
</rss>