<?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: Getting exception with first jqgrid attempt (No method getAccessor)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor</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/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kalldrexx on Getting exception with first jqgrid attempt (No method getAccessor)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18519</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18519</guid>
        	        	<description><![CDATA[<p>Fix came from stack overflow: <a href="http://stackoverflow.com/questions/3213984/jqgrid-giving-exception-when-json-is-attempted-to-be-loaded" rel="nofollow" target="_blank"><a href="http://stackoverflow.com/quest" rel="nofollow">http://stackoverflow.com/quest</a>.....-be-loaded</a></p>
</p>
<p>I needed to add</p>
<pre class="prettyprint"><p><input type='button' class='sfcodeselect' name='sfselectit3611' value='Select Code' data-codeid='sfcode3611' /></p><div class='sfcode' id='sfcode3611'>jsonReader : { repeatitems: false } </div></pre>
<pre class="prettyprint"><p><input type='button' class='sfcodeselect' name='sfselectit5700' value='Select Code' data-codeid='sfcode5700' /></p><div class='sfcode' id='sfcode5700'>to my jgrid.</div></pre>
]]></description>
        	        	<pubDate>Fri, 09 Jul 2010 18:46:34 +0300</pubDate>
        </item>
        <item>
        	<title>kalldrexx on Getting exception with first jqgrid attempt (No method getAccessor)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18518</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18518</guid>
        	        	<description><![CDATA[<p>I tried to format my data like it says (the data never showed up in the grid to begin with as an FYI), so now my json is being returned like this:</p>
<p>{"page":"1","total":"1","records":6,"rows":[{"id":"37","version":"4.14.9.1","name":"4.14 Patch 8","date":"2010-07-08"},{"id":"39","version":"4.15.4.1","name":"4.15 Patch 3","date":"2010-07-08"},{"id":"36","version":"4.13.11.1","name":"4.13 Patch 11","date":"2010-07-15"},{"id":"40","version":"4.15.5.1","name":"4.15 Patch 4","date":"2010-07-22"},{"id":"38","version":"4.14.10.1","name":"4.14 Patch 9","date":"2010-07-22"},{"id":"30","version":"4.16.1.1","name":"4.16 Release","date":"2010-07-30"}]}</p>
</p>
<p>However now, once the data loads a new exception is thrown:</p>
<p>Uncaught TypeError: Cannot read property &#39;0&#39; of undefined&#160;</p>
<p>in jquery.jqGrid.min.js:14</p>
]]></description>
        	        	<pubDate>Fri, 09 Jul 2010 17:43:13 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on Getting exception with first jqgrid attempt (No method getAccessor)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18515</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18515</guid>
        	        	<description><![CDATA[<p>Hi!</p>
<p>First of all you should include first grid.locale-en.js and then jquery.jqGrid.min.js.</p>
<p>Second verify that your data has "rows" and so on parts like described in /jqgridwiki/doku.php?id=wiki:retrieving_data#json_dot_notation</p>
]]></description>
        	        	<pubDate>Fri, 09 Jul 2010 17:34:20 +0300</pubDate>
        </item>
        <item>
        	<title>kalldrexx on Getting exception with first jqgrid attempt (No method getAccessor)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18514</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18514</guid>
        	        	<description><![CDATA[<p>Nevermind, it appears it&#39;s caused because I was loading jquery.jqGrid.min.js prior to grid.locale-en.js</p>
]]></description>
        	        	<pubDate>Fri, 09 Jul 2010 17:28:03 +0300</pubDate>
        </item>
        <item>
        	<title>kalldrexx on Getting exception with first jqgrid attempt (No method getAccessor)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18513</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/getting-exception-with-first-jqgrid-attempt-no-method-getaccessor#p18513</guid>
        	        	<description><![CDATA[<p>I seem to be having trouble with my first jqGrid.&#160; My page is setup as follows:</p>
</p>
<p>&#60;link type="text/css" href="/Styles/ui-lightness/jquery-ui-1.8.2.custom.css" rel="Stylesheet" /&#62;<br />&#60;link type="text/css" href="/Styles/ui.jqgrid.css" rel="Stylesheet" /&#62;<br />&#60;script type="text/javascript" src="/Scripts/jquery-1.4.2.min.js" &#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="/Scripts/jquery-ui-1.8.2.min.js" &#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="/Scripts/jquery.jqGrid.min.js" &#62;&#60;/script&#62;<br />&#60;script type="text/javascript" src="/Scripts/grid.locale-en.js" &#62;&#60;/script&#62;&#60;link type="text/css" rel="Stylesheet" href="Styles/Site.css" /&#62;&#60;/head&#62;</p>
<p>...</p>
<p>&#160;&#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(function() {&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#tblScheduledReleases").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/Release/GetScheduledReleases&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;Id&#39;, &#39;Version&#39;, &#39;Name&#39;, &#39;Scheduled Date&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;, index:&#39;id&#39;, width:55},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;version&#39;, index:&#39;version&#39;, width:90},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;name&#39;, index:&#39;name&#39;, width:100},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;date&#39;, index:&#39;date&#39;, width:90}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;date&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: "Scheduled Releases"<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#tblScheduledReleases").jqGrid(&#39;navGrid&#39;, &#39;#divScheduledPager&#39;,{edit:false, add:false, del:false});<br />&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160; &#60;/script&#62;</p>
<p>...</p>
<p>&#160;&#60;table id="tblScheduledReleases"&#62;&#60;/table&#62;<br />&#160;&#160;&#160; &#60;div id="divScheduledPager"&#62;&#60;/div&#62;</p>
<p>---------------------------------------</p>
<p>This code seems to run fine, and it calls the /Release/GetScheduleReleases, which returns the correct json (i.e. [{"id":37,"version":"4.14.9.1","name":"4.14 Patch 8","date":"2010-07-08"}]) However, upon retrieving the json the following exception occurs:</p>
<p>Uncaught TypeError: Object #&#60;an Object&#62; has no method &#39;getAccessor&#39; in jquery.jqGrid.min.js:52</p>
</p>
<p>This makes the jqgrid hang at the loading stage.&#160; Does anyone know how I might go about fixing this?</p>
]]></description>
        	        	<pubDate>Fri, 09 Jul 2010 17:15:14 +0300</pubDate>
        </item>
</channel>
</rss>