<?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: jqGrid issue - ts.p.colModel&#091;idn&#093; is undefined</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-issue-tspcolmodelidn-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/help/jqgrid-issue-tspcolmodelidn-is-undefined/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ranjuvs on jqGrid issue - ts.p.colModel&#091;idn&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-issue-tspcolmodelidn-is-undefined#p1761</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-issue-tspcolmodelidn-is-undefined#p1761</guid>
        	        	<description><![CDATA[<blockquote>
<p>Thank You Tony. It worked for me.</p>
</p>
<p>Regards</p>
<p>Ranju</p>
</p>
<p>tony said:</p>
<p>If I see you should configure jsonReader for your data - the id row</p>
<p>is set to read id:&#8221;some_id&#8221;, by default the this is id</p>
<p>in jsonReader maybe you should set value to &#8220;v_id&#8221;</p>
<p>&#160;i.e. &#160; id:&#8221;v_id&#8221;</p>
</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
]]></description>
        	        	<pubDate>Wed, 27 Aug 2008 23:27:03 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jqGrid issue - ts.p.colModel&#091;idn&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-issue-tspcolmodelidn-is-undefined#p1745</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-issue-tspcolmodelidn-is-undefined#p1745</guid>
        	        	<description><![CDATA[<p>If I see you should configure jsonReader for your data - the id row</p>
<p>is set to read id:"some_id", by default the this is id</p>
<p>in jsonReader maybe you should set value to "v_id"</p>
<p>&#160;i.e. &#160; id:"v_id"</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 27 Aug 2008 09:05:04 +0300</pubDate>
        </item>
        <item>
        	<title>ranjuvs on jqGrid issue - ts.p.colModel&#091;idn&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-issue-tspcolmodelidn-is-undefined#p1743</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-issue-tspcolmodelidn-is-undefined#p1743</guid>
        	        	<description><![CDATA[<p>idn=(ts.p.keyIndex===false)?ts.p.jsonReader.id:ts.p.keyIndex;drows=data[ts.p.jsonReader.root];if(drows){for(var i=0;i&#60;drows.length;i++){cur=drows[i];row=document.createElement("tr");row.id=cur[idn]&#124;&#124;cur[ts.p.colModel[idn].jsonmap]&#124;&#124;cur[ts.p.colModel[idn].name]&#124;&#124;i+1;if(ts.p.multiselect){addMulti(t,row);gi=1;}</p>
</p>
<p>These are the lines that is trigger for this error. Any help is appreciable.</p>
</p>
<p>Regards</p>
<p>Ranju</p>
]]></description>
        	        	<pubDate>Wed, 27 Aug 2008 08:54:43 +0300</pubDate>
        </item>
        <item>
        	<title>ranjuvs on jqGrid issue - ts.p.colModel&#091;idn&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-issue-tspcolmodelidn-is-undefined#p1742</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-issue-tspcolmodelidn-is-undefined#p1742</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I am getting an error &#8220;ts.p.colModel[idn]&#160;is undefined&#8221;. The datatype&#160;I am using is jasonstring and the datastr data I am passing is as follows</p>
<pre id="line46">var response = "{&#39;page&#39;:&#39;1&#39;, &#39;total&#39;:1.0,&#39;records&#39;:&#39;2&#39;,&#39;rows&#39;:[{&#39;v_id&#39;:&#39;5&#39;,&#39;cell&#39;:[&#39;mi_adizero&#39;,&#39;live&#39;,&#39;mi team jersey mi teamwear shorts&#39;]},{&#39;v_id&#39;:&#39;2&#39;,&#39;cell&#39;:[&#39;mi_teamwear&#39;,&#39;live&#39;,&#39;mi team jersey mi teamwear shorts&#39;]}]}&#8221;
</pre>
</p>
<p>The functiona I am using to build the grid is</p>
<p>jQuery(document).ready(function(){<br />jQuery(&#8221;#list2&#8243;).jqGrid({<br />&#160;&#160;&#160; <a href="/blog/&#39;myurl&#39;" target="_blank">url:&#39;myurl&#39;</a>,<br />&#160;&#160; datatype: &#39;jsonstring&#39;,<br />&#160;&#160;&#160; datastr : response,<br />&#160;&#160; colNames:[&#39;Id&#39;,&#39;Name&#39;, &#39;Email&#39;, &#39;Role&#39;],<br />&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;v_id&#39;,index:&#39;v_id&#39;, width:30},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;v_name&#39;,index:&#39;v_name&#39;, width:150},<br />&#160;&#160;&#160; &#160;{name:&#39;v_email&#39;,index:&#39;v_email asc, invdate&#39;, width:200},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;v_role&#39;,index:&#39;v_role&#39;, width:150, align:"right"}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //{name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right"},&#160;&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //{name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right"},&#160;&#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //{name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false}&#160;&#160;<br />&#160;&#160;&#160; ],<br />&#160;&#160;&#160; pager: jQuery(&#39;#pager2&#39;),<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; imgpath: &#39;pathtoimages&#39;,<br />&#160;&#160;&#160; sortname: &#39;v_id&#39;,<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; sortorder: &#8220;desc&#8221;,<br />&#160;&#160;&#160; caption: &#8220;Vendor Listing&#8221;,<br />});<br />});</p>
<p>I would appreciate if you could find out the solution for me.</p>
</p>
<p>Thanks and Regards</p>
<p>Ranju</p>
]]></description>
        	        	<pubDate>Wed, 27 Aug 2008 08:52:46 +0300</pubDate>
        </item>
</channel>
</rss>