<?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: Error "h is undefined" line 341 for subgrid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid</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/error-h-is-undefined-line-341-for-subgrid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Ed Valentine on Error "h is undefined" line 341 for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15970</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15970</guid>
        	        	<description><![CDATA[<p>That fixed it! Thanks.<img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 22:03:21 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Error "h is undefined" line 341 for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15936</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15936</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You will need to configure the jsonReader for the subgrid in the right way. They is little diffrent for the</p>
<p>Look here</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:subgrid#properties" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....properties</a></p>
<p>Try</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1345' value='Select Code' data-codeid='sfcode1345' /></p>
<div class='sfcode' id='sfcode1345'>
<p>jsonReader : {<br />&#160;&#160;&#160; root: "rows",<br />&#160;&#160;&#160; page: "page",<br />&#160;&#160;&#160; total: "total",<br />&#160;&#160;&#160; records: "records",<br />&#160;&#160;&#160; repeatitems: true,<br />&#160;&#160;&#160; cell: "cell",<br />&#160;&#160;&#160; id: "id",<br />&#160;&#160;&#160; subgrid: { root: "rows", repeatitems: true, cell: &#39;Cell&#39;}<br />}</p>
</div>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 09:13:03 +0200</pubDate>
        </item>
        <item>
        	<title>Ed Valentine on Error "h is undefined" line 341 for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15893</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15893</guid>
        	        	<description><![CDATA[<p>Code from Firebug:</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;<br />2&#60;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&#62;<br />3<br />4<br />5&#60;head&#62;<br />6 &#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;&#60;title&#62;Employee Grid &#60;/title&#62;&#60;link rel="stylesheet" type="text/css" media="screen" href="css/redmond/jquery-ui-1.7.2.custom.css" /&#62;&#60;link rel="stylesheet" type="text/css" media="screen" href="src/css/ui.jqgrid.css" /&#62;&#60;link rel="stylesheet" type="text/css" media="screen" href="css/grid1.css" /&#62;&#60;link rel="stylesheet" type="text/css" media="screen" href="css/jquery.searchFilter.css" /&#62;&#60;script src="js/jquery-1.3.2.min.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="js/jquery-ui-1.7.2.custom.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="js/i18n/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script src="js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script type="text/javascript"&#62;<br />7var lastsel<br />8jQuery(document).ready(function(){<br />9 jQuery("#list").jqGrid({<br />10 url:&#39;emp_gd_data.html&#39;,<br />11 datatype: &#39;json&#39;,<br />12 jsonReader : {<br />13 root: "rows",<br />14 page: "page",<br />15 total: "total",<br />16 records: "records",<br />17 repeatitems: true,<br />18 cell: "cell",<br />19 id: "id",<br />20 subgrid: {<br />21 root: "rows",<br />22 repeatitems: true,<br />23 row: "Cell",<br />24 cell: &#39;0&#39;,<br />25 id: "id"<br />26 }<br />27 },<br />28 mtype: &#39;GET&#39;,<br />29 colNames:[&#39;Emp Nm&#39;, &#39;Active&#39;,&#39;Last&#39;,&#39;First&#39;,&#39;SSN&#39;,&#39;City&#39;,&#39;State&#39;,&#39;Site_ID&#39;,&#39;id&#39;],<br />30 colModel :[<br />31 {name:&#39;Emp_nm&#39;, index:&#39;emp_nm&#39;, width:80, align:&#39;right&#39;, sorttype:&#39;int&#39;,<br />32 search:true,searchoptions:{sopt:[&#39;eq&#39;]}},<br />33 {name:&#39;item_nm&#39;, index:&#39;item_nm&#39;, width:80, align:&#39;right&#39;, sorttype:&#39;int&#39;},<br />34 {name:&#39;seq&#39;, index:&#39;seq&#39;, width:80, align:&#39;right&#39;},<br />35 {name:&#39;action&#39;, index:&#39;action&#39;, width:80, sortable:true, editable:true},<br />36 {name:&#39;act_dt&#39;, index:&#39;act_dt&#39;, width:80, sortable:true},<br />37 {name:&#39;ckd_by&#39;, index:&#39;ckd_by&#39;, width:75, sortable:true},<br />38 {name:&#39;sent_to&#39;, index:&#39;sent_to&#39;, width:100, sortable:true},<br />39 {name:&#39;alert&#39;, index:&#39;alert&#39;, width:300, sortable:true,search:true},<br />40 {name:&#39;id&#39;, index:&#39;id&#39;, width:80, align:&#39;right&#39;, sorttype:&#39;int&#39;} ],<br />41 editurl: &#39;emp_dtl.html&#39;,<br />42 pager: jQuery(&#39;#pager&#39;),<br />43 rowNum:10,<br />44 rowList:[10,20,30],<br />45 sortname: &#39;account&#39;,<br />46 sortorder: "desc",<br />47 viewrecords: true,<br />48 caption: &#39;Employees&#39;,<br />49 hidegrid: false,<br />50 hiddengrid: false,<br />51 multiselect: false,<br />52 subGrid : true,<br />53 subGridUrl: &#39;time_subgrid.html&#39;,<br />54 params: [&#39;id&#39;],<br />55 subGridModel: [{ name : [&#39;No&#39;,&#39;Date&#39;,&#39;Start&#39;,&#39;End&#39;],<br />56 width : [55,100,80,80],<br />57 align : [&#39;left&#39;,&#39;left&#39;,&#39;right&#39;,&#39;right&#39;]<br />58 } ],<br />59 })<br />60});<br />61jQuery("#list").jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;, { edit:true,add:false,del:false,search:true,refresh:true },<br />62 {}, // edit options<br />63 {}, // add options<br />64 {}, //del options<br />65 {multipleSearch:true} // search options<br />66 );<br />67&#60;!-- }); --&#62;<br />68$("#bedata").click(function(){<br />69 var gr = jQuery("#list").jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;);<br />70 if( gr != null ) jQuery("#list").jqGrid(&#39;viewGridRow&#39;,gr,{height:280,reloadAfterSubmit:false});<br />71 else alert("Please Select Row");<br />72});<br />73 &#60;/script&#62;&#60;style type="text/css"&#62;&#60;/style&#62;<br />74 &#60;link rel="stylesheet" type="text/css" media="screen" href="/css/style.css" /&#62;<br />75&#60;/head&#62;</p>
</p>
<p>Responce as in Firebug:</p>
<div class="netInfoResponseText  netInfoText ">
<pre><p><input type='button' class='sfcodeselect' name='sfselectit7704' value='Select Code' data-codeid='sfcode7704' /></p><div class='sfcode' id='sfcode7704'>{"rows": [{"Cell": ["101", "2010-03-01", "10:19:08-06:00", "10:19:08-06:00"], "id": "1"}, {"Cell": ["101"</div><p><input type='button' class='sfcodeselect' name='sfselectit4760' value='Select Code' data-codeid='sfcode4760' /></p><div class='sfcode' id='sfcode4760'>, "2010-03-01", "None", "None"], "id": "2"}, {"Cell": ["102", "2010-03-04", "14:32:12-06:00", "14:32</div><p><input type='button' class='sfcodeselect' name='sfselectit9130' value='Select Code' data-codeid='sfcode9130' /></p><div class='sfcode' id='sfcode9130'>:12-06:00"], "id": "3"}, {"Cell": ["102", "2010-03-10", "12:53:00-06:00", "22:24:00-06:00"], "id": "4"</div><p><input type='button' class='sfcodeselect' name='sfselectit3210' value='Select Code' data-codeid='sfcode3210' /></p><div class='sfcode' id='sfcode3210'>}]}<br /><br /></div><a href="http://www.prosoftplus.com:8088/emp_gd" rel="nofollow" target="_blank">http://www.prosoftplus.com:8088/emp_gd</a><br /><br />Thanks for your help.</pre>
</div>
]]></description>
        	        	<pubDate>Mon, 22 Mar 2010 18:41:07 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Error "h is undefined" line 341 for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15720</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15720</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please post your grid configurations, or better provide a link?</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 15 Mar 2010 20:20:04 +0200</pubDate>
        </item>
        <item>
        	<title>Ed Valentine on Error "h is undefined" line 341 for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15585</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15585</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>Thanks for your reply. I made the change and that did not help. If I set repeatItems: false, there is no error and no data in the grid. This is correct behavior.If I set to true then there is the error. This tells me that the issue is, I think, in json reader translating the data string. </p>
<p>Can you see anything in the data string that is wrong?</p>
]]></description>
        	        	<pubDate>Wed, 10 Mar 2010 20:18:25 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Error "h is undefined" line 341 for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15554</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15554</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>you have jsonReader like this</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7871' value='Select Code' data-codeid='sfcode7871' /></p>
<div class='sfcode' id='sfcode7871'>
<p>jsonReader :</p>
<p>{ root: "rows",</p>
<p>page: "page",</p>
<p>total: "total",</p>
<p>records: "records",</p>
<p>repeatitems: true,&#160;</p>
<p>cell: "cell",</p>
<p>id: "id",</p>
<p>....</p>
</div>
<p>I think it should be</p>
<p><input type='button' class='sfcodeselect' name='sfselectit448' value='Select Code' data-codeid='sfcode448' /></p>
<div class='sfcode' id='sfcode448'>
<p>jsonReader :</p>
<p>{ root: "rows",</p>
<p>page: "page",</p>
<p>total: "total",</p>
<p>records: "records",</p>
<p>repeatitems: true,&#160;</p>
<p><strong>cell: "Cell"</strong>,</p>
<p>id: "id",</p>
<p>....</p>
</div>
<p>According to your response</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 09 Mar 2010 20:49:30 +0200</pubDate>
        </item>
        <item>
        	<title>Ed Valentine on Error "h is undefined" line 341 for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15524</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15524</guid>
        	        	<description><![CDATA[<p>Returned data string:&#160;</p>
<div class="netInfoResponseText netInfoText ">
<pre><p><input type='button' class='sfcodeselect' name='sfselectit703' value='Select Code' data-codeid='sfcode703' /></p><div class='sfcode' id='sfcode703'>{"rows": [{"Cell": ["101", "2010-03-01", "10:19:08-06:00", "10:19:08-06:00"], "id": "1"}, {"Cell": ["101"</div><p><input type='button' class='sfcodeselect' name='sfselectit8861' value='Select Code' data-codeid='sfcode8861' /></p><div class='sfcode' id='sfcode8861'>, "2010-03-01", "None", "None"], "id": "2"}, {"Cell": ["102", "2010-03-04", "14:32:12-06:00", "14:32</div><p><input type='button' class='sfcodeselect' name='sfselectit1209' value='Select Code' data-codeid='sfcode1209' /></p><div class='sfcode' id='sfcode1209'>:12-06:00"], "id": "3"}]}<br /><br /></div>&#160;&#160; &#160;&#160;&#160;&#160; jsonReader : {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; root: "rows",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; page: "page",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; total: "total",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; records: "records",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; repeatitems: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; cell: "cell",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; id: "id",<br />&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;subgrid: {<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;root: "rows", <br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repeatitems: true, <br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;cell: "cell",<br />&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;id: "id"<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; }, <br /><br /><br />&#160;&#160; &#160;&#160;&#160;&#160; hidegrid: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;hiddengrid: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;multiselect: false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;subGrid : true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;subGridUrl: &#39;time_subgrid.html&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;params: [&#39;id&#39;], <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;subGridModel: [{ name : [&#39;No&#39;,&#39;Date&#39;,&#39;Start&#39;,&#39;End&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; width : [55,100,80,80],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; align : [&#39;left&#39;,&#39;left&#39;,&#39;right&#39;,&#39;right&#39;]<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;} ], <br /><br /><br />JSON ["101", "2010-03-01", "10:19:08-06:00", "10:19:08-06:00"] as shown by Firebug.<br /><br />These are the parts for the subgrid. The remander of the code is working. The code stops showing the &#39;Loading....." alert. After receiving the json load.<br /><br />Any Suggestions?<br /><br />Thanks.</pre>
</div>
]]></description>
        	        	<pubDate>Tue, 09 Mar 2010 18:51:39 +0200</pubDate>
        </item>
        <item>
        	<title>bdensmore on Error "h is undefined" line 341 for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15503</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15503</guid>
        	        	<description><![CDATA[<p>Have you tried looking at the data being returned to the grid? Could there possibly be an illegal character in that data? That is, if you&#39;re populating the grid with any data at this point.</p>
</p>
<p>It&#39;s possible that you have a single quote or something in some of your data and causes the javascript code to break.</p>
</p>
<p>I&#39;m just guessing since you didn&#39;t post any code. But, if you are loading in data, maybe take a look at what&#39;s being returned.</p>
</p>
<p>Ben</p>
]]></description>
        	        	<pubDate>Mon, 08 Mar 2010 22:20:21 +0200</pubDate>
        </item>
        <item>
        	<title>Ed Valentine on Error "h is undefined" line 341 for subgrid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15457</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/error-h-is-undefined-line-341-for-subgrid#p15457</guid>
        	        	<description><![CDATA[<p>I am trying to add the subgrid to a working grid. Firebug returns the error "h is undefined" at line 341 in the jqgrid.min.js file.</p>
<p>It is probibly me code but I can not find anything.</p>
<p>Suggestions?</p>
]]></description>
        	        	<pubDate>Mon, 08 Mar 2010 06:22:53 +0200</pubDate>
        </item>
</channel>
</rss>