<?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: addRowData method throws exception</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception</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/addrowdata-method-throws-exception/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Keith Ivey on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p21932</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p21932</guid>
        	        	<description><![CDATA[<p>I&#39;m still having to reapply this patch after every update. Shouldn&#39;t the afterInsertRow handler run *after* the row is inserted, not before?</p>
]]></description>
        	        	<pubDate>Thu, 03 Feb 2011 23:18:49 +0200</pubDate>
        </item>
        <item>
        	<title>Keith Ivey on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p20179</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p20179</guid>
        	        	<description><![CDATA[<p>Am I misunderstanding something? Isn&#39;t it a bug that the afterInsertRow handler is run <strong>before</strong> the row data is inserted?</p>
]]></description>
        	        	<pubDate>Wed, 06 Oct 2010 21:49:02 +0300</pubDate>
        </item>
        <item>
        	<title>Keith Ivey on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p20070</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p20070</guid>
        	        	<description><![CDATA[<p>I&#39;m having a possibly related problem, using the current version from github. I get "Cannot set property &#39;name&#39; of undefined" in grid.base.js line 2957.</p>
<p>The problem occurs when I use setCell() within an afterInsertRow handler. Looking at the code in grid.base.js for addRowData(), it seems to be calling the afterInsertRow handler before it actually inserts the data. &#160;Shouldn&#39;t this line, currently at 2654, be moved down 6 lines to below the lines that insert the data in the local case?&#160;&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9794' value='Select Code' data-codeid='sfcode9794' /></p>
<div class='sfcode' id='sfcode9794'>if(air) { t.p.afterInsertRow.call(t,rowid,data,data); }</div>
]]></description>
        	        	<pubDate>Wed, 29 Sep 2010 20:15:15 +0300</pubDate>
        </item>
        <item>
        	<title>tony on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17899</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17899</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>In order to resolve I need a link to the problem</p>
<p>Thanks</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 13 Jun 2010 21:08:34 +0300</pubDate>
        </item>
        <item>
        	<title>usarskyy on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17887</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17887</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>subgrid exists. I&#39;ve used the following code to check it:</p>
<p style="padding-left: 30px;">if ($("#" + subGridID).length &#62; 0){</p>
<p style="padding-left: 60px;">alert(&#39;exists&#39;);</p>
<p style="padding-left: 30px;">}</p>
]]></description>
        	        	<pubDate>Sat, 12 Jun 2010 16:31:35 +0300</pubDate>
        </item>
        <item>
        	<title>tony on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17824</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17824</guid>
        	        	<description><![CDATA[<p>Dear usarskyy,</p>
<p>Every piece of code is important.</p>
<p>For me this is not a bug and you problem maybe is that you try to add a data to a grid which does not exists.</p>
<p>Try determine if this</p>
<p>$("#"+subGridID)</p>
<p>is existing element into the dom before to add a data to it.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 09 Jun 2010 11:44:34 +0300</pubDate>
        </item>
        <item>
        	<title>usarskyy on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17818</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17818</guid>
        	        	<description><![CDATA[<p>I&#39;ve just tried on dev version and unfortunately have to say that it doesn&#39;t work</p>
]]></description>
        	        	<pubDate>Wed, 09 Jun 2010 02:44:50 +0300</pubDate>
        </item>
        <item>
        	<title>usarskyy on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17811</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17811</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>thx for reply. Is this fix also included in last 3.7 beta version?</p>
<p>In the original code there&#39;re a few more records after comma, but as they are not important I removed them.</p>
]]></description>
        	        	<pubDate>Tue, 08 Jun 2010 16:14:47 +0300</pubDate>
        </item>
        <item>
        	<title>tony on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17800</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17800</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>There is a fix regarding addRowdata and rownumbers in the GitHub,</p>
<p>but you have a not needed comma here:</p>
<p>colModel: [</p>
<p>{name:&#39;parentKeyID&#39;, index:&#39;parentKeyID&#39;, width:0, align:&#39;center&#39;,hidden:true},</p>
<p>{name:&#39;id&#39;, index:&#39;id&#39;, width:30, align:&#39;center&#39;,hidden:true},</p>
<p>{label:&#39;Text&#39;, name:&#39;text&#39;, index:&#39;text&#39;, width:350, align:&#39;center&#39;}, <strong>&#60;==== Error</strong></p>
<p>],</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 08 Jun 2010 15:11:36 +0300</pubDate>
        </item>
        <item>
        	<title>usarskyy on addRowData method throws exception</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17784</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/addrowdata-method-throws-exception#p17784</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;ve encountered strange behavior of addRowData method. When I add row like:&#160;</p>
<p style="padding-left: 30px; ">$("#"+subGridID).addRowData("1", {id:"1",text:"text"});</p>
<p>it throws the following exception:</p>
<p style="padding-left: 30px;">Uncaught TypeError: Cannot read property &#39;rownumbers&#39; of undefined <a class="console-message-url " href="http://dev.airfarebee.com/Content/Scripts/jquery.jqGrid.min.0.0.0.0.js" target="_blank">jquery.jqGrid.min.0.0.0.0.js:98</a></p>
<p>subGridID -&#62; ID of the subgrid 🙂 I create it using the following code:</p>
</p>
<p>subGridRowExpanded: function(subgrid_id, row_id) {</p>
<p>var subgrid_table_id;</p>
<p>subgrid_table_id = subgrid_id+"_t";</p>
</p>
<p>$("#${searchResultsGridID}").setCell(row_id,&#39;subGridID&#39;,subgrid_id);</p>
</p>
<p>$("#"+subgrid_id).html(&#39;&#60;table id="&#39;+subgrid_table_id+&#39;" class="scroll"&#62;&#60;/table&#62;&#39;);</p>
<p>jQuery("#"+subgrid_table_id).jqGrid({</p>
<p>url:&#39;someurl.html&#39;,</p>
<p>datatype: "json",</p>
<p>colModel: [</p>
<p>{name:&#39;parentKeyID&#39;, index:&#39;parentKeyID&#39;, width:0, align:&#39;center&#39;,hidden:true},</p>
<p>{name:&#39;id&#39;, index:&#39;id&#39;, width:30, align:&#39;center&#39;,hidden:true},</p>
<p>{label:&#39;Text&#39;, name:&#39;text&#39;, index:&#39;text&#39;, width:350, align:&#39;center&#39;},</p>
<p>],</p>
<p>jsonReader: {</p>
<p>root: "rows",</p>
<p>page: "page",</p>
<p>total: "total",</p>
<p>records: "records",</p>
<p>repeatitems: false,</p>
<p>userdata: "userdata",</p>
<p>id: "id",</p>
<p>cell: "cell"</p>
<p>},</p>
<p>rowNum:20,</p>
<p>sortname: &#39;id&#39;,</p>
<p>sortorder: "asc",</p>
<p>height: &#39;100%&#39;,</p>
<p>width: &#39;500&#39;,</p>
<p>postData:{resourceKeyID:row_id}</p>
<p>});</p>
<p>},</p>
</p>
<p>I would be really appreciated for any kind of help! Thx!</p>
]]></description>
        	        	<pubDate>Tue, 08 Jun 2010 01:34:55 +0300</pubDate>
        </item>
</channel>
</rss>