<?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: subgrid not running</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-running</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/subgrid-not-running/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>auz1111 on subgrid not running</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-running#p6185</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-not-running#p6185</guid>
        	        	<description><![CDATA[<p>yeah i got it after a little closer looking by second eyes...</p>
<p>I copied the code from an example in the help docs.</p>
<p>--------------------------------------</p>
<p>height: 100%,</p>
<p>should be</p>
<p>height: "100%",</p>
<p>--------------------------------------</p>
</p>
<p>doh!<img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/plugins/simple-forum/tinymce/plugins/emotions/img/smiley-wink.gif" border="0" alt="Wink" /> All good now! Awesome grid! Thanks!</p></p>
]]></description>
        	        	<pubDate>Mon, 20 Apr 2009 17:00:21 +0300</pubDate>
        </item>
        <item>
        	<title>tony on subgrid not running</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-running#p6080</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-not-running#p6080</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>What does not work?</p>
<p>Check you code again - if you do not have the grid, something is wrong in the code of the subgrid. Try first simple things.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 16 Apr 2009 03:33:43 +0300</pubDate>
        </item>
        <item>
        	<title>auz1111 on subgrid not running</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/subgrid-not-running#p6050</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/subgrid-not-running#p6050</guid>
        	        	<description><![CDATA[<p>Hi, I am having an issue getting a subrid to run.&#160; The code I am using is below.</p>
<p>When I remove the jQuery("#"+subgrid_table_id).jQGrid({...}) portion I can see the main grid with the clickable + buttons.</p>
</p>
<p>----------------------------------------------------------------------------------------------</p>
<p>&#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160; //&#160;&#160;&#160; $(document).ready(function(){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#orders").jqGrid({<br />&#160;&#160;&#160; url:&#39;/ajax.docs/plugin/JSON_NAA_MEMBER_ORDERS?rid={$this-&#62;my_record_id}&#39;,<br />&#160;&#160;&#160; jsonReader:{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false,<br />&#160;&#160;&#160; },<br />&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; jsonReader:{repeatitems: false},<br />&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160; colNames:[&#39;Order ID&#39;,&#39;Total&#39;,&#39;Order Date&#39;],<br />&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;id&#39;, index:&#39;Order ID&#39;, width:60, key:true}, <br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;total&#39;, index:&#39;total&#39;, width:220}, <br />&#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;ts&#39;, index:&#39;ts&#39;, width:220, align:&#39;left&#39;}],<br />&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; imgpath: &#39;/js/jquery/plugins/jqGrid/jqGrid-3.4.3/themes/coffee/images&#39;,<br />&#160;&#160;&#160; pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;&#160; //onSelectRow: function(id){ if(id &#38;&#38; id!==lastsel3){ jQuery(&#39;#rowed6&#39;).restoreRow(lastsel3); jQuery(&#39;#rowed6&#39;).editRow(id,true,pickdates); lastsel3=id; } }, editurl: "server.php", <br />&#160;&#160;&#160; caption: &#39;Payment History&#39;,<br />&#160;&#160;&#160; onSelectRow: function(id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //debug(id + " wants to be edited");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#paymentDetail").load(<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; "/ajax.docs/plugin/HTML_NAA_MEMBER_PAYMENT" , <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {rid: id}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; function (responseText, textStatus, XMLHttpRequest) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //console.log(responseText, textStatus, XMLHttpRequest);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (responseText=&#39;success&#39;) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;#paymentDetail&#39;).fadeIn(1111);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //this; // dom element<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; );</p>
<p>&#160;&#160;&#160; },<br />&#160;&#160;&#160; subGrid: true,<br />&#160;&#160;&#160; subGridRowExpanded: function(subgrid_id, row_id) {<br />&#160;&#160;&#160; // we pass two parameters<br />&#160;&#160;&#160; // subgrid_id is a id of the div tag created within a table<br />&#160;&#160;&#160; // the row_id is the id of the row<br />&#160;&#160;&#160; // If we want to pass additional parameters to the url we can use<br />&#160;&#160;&#160; // the method getRowData(row_id) - which returns associative array in type name-value<br />&#160;&#160;&#160; // here we can easy construct the following<br />&#160;&#160;&#160; &#160;&#160;&#160; var subgrid_table_id;<br />&#160;&#160;&#160; &#160;&#160;&#160; subgrid_table_id = subgrid_id+"_t";<br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#"+subgrid_id).html("&#60;table id=&#39;"+subgrid_table_id+"&#39; class=&#39;scroll&#39;&#62;&#60;/table&#62;");<br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; alert(&#39;subrid_id: &#39;+ subgrid_id + &#39; , row_id: &#39; + row_id + &#39; , subgrid_table_id: &#39; + subgrid_table_id);</p>
<p>&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#"+subgrid_table_id).jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; url:&#39;/ajax.docs/plugin/JSON_NAA_MEMBER_PAYMENTS?q=2&#38;rid={$this-&#62;my_record_id}&#38;id=&#39;+row_id,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jsonReader:{repeatitems: false},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;Payment ID&#39;,&#39;Payment Date&#39;,&#39;Payment Type&#39;,&#39;Amount&#39;,&#39;Mailing ID&#39;,&#39;Receipt ID&#39;],<br />&#160;&#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; {name:&#39;payment_id&#39;, index:&#39;Payment ID&#39;, width:60, key:true}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;payment_date&#39;, index:&#39;payment_date&#39;, width:120}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;payment_type&#39;, index:&#39;payment_type&#39;, width:120, align:&#39;left&#39;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;amount&#39;, index:&#39;amount&#39;, width:125, align:&#39;right&#39;}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;mailing_id&#39;, index:&#39;mailing_id&#39;, width:120, align:&#39;right&#39;}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; {name:&#39;receipt_id&#39;, index:&#39;receipt_id&#39;, width:100, align:&#39;right&#39;}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; height: 100%,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; rowNum:20,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; imgpath: &#39;/js/jquery/plugins/jqGrid/jqGrid-3.4.3/themes/coffee/images&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; sortname: &#39;payment_id&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; sortorder: "desc"<br />&#160;&#160;&#160; &#160;&#160;&#160; })<br />&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160; <br />&#160;&#160;&#160; </p>
<p>&#160; }).navGrid(&#39;#pager&#39;,{edit:false,add:false,del:false});</p>
<p>any ideas why this subgrid would not work?</p>
]]></description>
        	        	<pubDate>Wed, 15 Apr 2009 18:06:02 +0300</pubDate>
        </item>
</channel>
</rss>