<?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: Data contains a table -- g.p.colModel&#091;a&#093; is undefined</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/data-contains-a-table-g-p-colmodela-is-undefined</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/data-contains-a-table-g-p-colmodela-is-undefined/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Shift4SMS on Data contains a table -- g.p.colModel&#091;a&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/data-contains-a-table-g-p-colmodela-is-undefined#p26406</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/data-contains-a-table-g-p-colmodela-is-undefined#p26406</guid>
        	        	<description><![CDATA[<p>Thanks. Someone replied to another thread for a slightly different symptom of the same problem. I did not realize they were related (in fact, I forgot I posted the other issue). anyway, the solution is in this thread: /blog/?page_id=393/bugs/l-p-colmodelx-is-undefined-with-html-data/</p>
]]></description>
        	        	<pubDate>Wed, 18 Apr 2012 18:15:23 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Data contains a table -- g.p.colModel&#091;a&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/data-contains-a-table-g-p-colmodela-is-undefined#p26397</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/data-contains-a-table-g-p-colmodela-is-undefined#p26397</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>There is nothing bad with your fix, but before to implenent it it will bereally good to have a test case.</p>
<p>Thank you</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Wed, 18 Apr 2012 12:14:58 +0300</pubDate>
        </item>
        <item>
        	<title>Shift4SMS on Data contains a table -- g.p.colModel&#091;a&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/data-contains-a-table-g-p-colmodela-is-undefined#p26390</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/data-contains-a-table-g-p-colmodela-is-undefined#p26390</guid>
        	        	<description><![CDATA[<p>BTW, I was originally receiving this error using version 4.2.0. I upgraded to version 4.3.2 with no effect.</p>
]]></description>
        	        	<pubDate>Tue, 17 Apr 2012 23:06:06 +0300</pubDate>
        </item>
        <item>
        	<title>Shift4SMS on Data contains a table -- g.p.colModel&#091;a&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/data-contains-a-table-g-p-colmodela-is-undefined#p26389</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/data-contains-a-table-g-p-colmodela-is-undefined#p26389</guid>
        	        	<description><![CDATA[<p>I have a grid where one of the columns contain html code. Everything works fine until the html code within the column data contains a table, in which case I get a js exception: "g.p.colModel[a] is undefined". In the src, I narrowed it down to the following and created a work around that seems to work:</p>
<p>&#160;&#8230;</p>
<p>getRowData : function( rowid ) {<br />&#160;&#160;var res = {}, resall, getall=false, len, j=0;<br />&#160;&#160;this.each(function(){<br />&#160;&#160;&#160;var $t = this,nm,ind;<br />&#160;&#160;&#160;if(typeof(rowid) == &#39;undefined&#39;) {<br />&#160;&#160;&#160;&#160;getall = true;<br />&#160;&#160;&#160;&#160;resall = [];<br />&#160;&#160;&#160;&#160;len = $t.rows.length;<br />&#160;&#160;&#160;} else {<br />&#160;&#160;&#160;&#160;ind = $t.rows.namedItem(rowid);<br />&#160;&#160;&#160;&#160;if(!ind) { return res; }<br />&#160;&#160;&#160;&#160;len = 2;<br />&#160;&#160;&#160;}<br />&#160;&#160;&#160;while(j&#60;len){<br />&#160;&#160;&#160;&#160;if(getall) { ind = $t.rows[j]; }<br />&#160;&#160;&#160;&#160;if( $(ind).hasClass(&#39;jqgrow&#39;) ) {<br />&#160;&#160;&#160;&#160;&#160;$(&#39;td&#39;,ind).each( function(i) {<br />&#160;&#160;&#160;&#160;&#160;<em>&#160;<strong>try {<br /></strong></em>&#160;&#160;&#160;&#160;&#160;&#160;<strong>&#160;nm = $t.p.colModel[i].name;<br /></strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160;if ( nm !== &#39;cb&#39; &#38;&#38; nm !== &#39;subgrid&#39; &#38;&#38; nm !== &#39;rn&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if($t.p.treeGrid===true &#38;&#38; nm == $t.p.ExpandColumn) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;res[nm] = $.jgrid.htmlDecode($("span:first",this).html());<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;} else {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;try {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;res[nm] = $.unformat.call($t,this,{rowId:ind.id, colModel:$t.p.colModel[i]},i);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;} catch (e){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;res[nm] = $.jgrid.htmlDecode($(this).html());<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;&#160;&#160;<em><strong>} catch(e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;}<br /></strong></em>&#160;&#160;&#160;&#160;&#160;});<br />&#160;&#160;&#160;&#160;&#160;if(getall) { resall.push(res); res={}; }<br />&#160;&#160;&#160;&#160;}<br />&#160;&#160;&#160;&#160;j++;<br />&#160;&#160;&#160;}<br />&#160;&#160;});<br />&#160;&#160;return resall ? resall: res;<br />&#160;},&#8230;</p>
</p>
<p>The<strong> bold line</strong> is the code that is triggering the exception. The <strong><em>italic bold code</em></strong> is my work around that I added. My question is: Is my work around "safe" and/or is there a better way to accomplish this?</p>
<p>I tried creating a small stand-alone example but for some reason, my small example works. I think it may be related to the datatype of json &#8212; my small example cannot fully impliment this without creating a scripting dependancy &#8212; a hard coded html template for the getter is not cutting it. I can send what I have if it helps.</p></p>
]]></description>
        	        	<pubDate>Tue, 17 Apr 2012 22:49:19 +0300</pubDate>
        </item>
</channel>
</rss>