<?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: expandSubGridRow</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow</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/expandsubgridrow/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jlb30504 on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p6111</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p6111</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>The problem was that I had subGrid:&#39;true&#39; instead of subGrid:true.&#160; This caused expandSubGridRow to kick out on the test if($t.p.subGrid===true).</p>
<p>Sorry to waste your time on my stupid mistake.&#160; Thank you for your help in walking me through this.&#160; I did learn more about firebug so hopefully, I won&#39;t ask so many dumb questions in the future.</p>
<p>Thanks for all of your hard work on jqGrid.</p>
<p>Jerry</p>
]]></description>
        	        	<pubDate>Thu, 16 Apr 2009 09:40:52 +0300</pubDate>
        </item>
        <item>
        	<title>tony on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5988</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5988</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I agree, the script is equivalent to the demo page, but why this does not work?</p>
<p>Also put alert and see if it is lunched (before call expandSubGridRow) . If you have FireBug you can set to use the development version of jqGrid (not min version) and look in expandSubGridRow which is in grid.subgrid.js module.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 14 Apr 2009 01:24:05 +0300</pubDate>
        </item>
        <item>
        	<title>jlb30504 on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5916</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5916</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>1.&#160; Firebug reports no errors on this page so I think expandSubRowGrid exists.&#160; I don&#39;t know how to check if it is being loaded other than to look for Firebug errors.</p>
<p>2.&#160; Row with id - 2095526 exists and expands if the "+" is clicked.</p>
<p>3.&#160; I don&#39;t understand what you are saying here.&#160; All the javascript code on&#160;my test page&#160;is pasted in the post above.&#160; No special case that I can see.</p>
<p>jQuery load is used to load a section of html code from the php server.&#160; The section of html code is the subgrid.&#160; Using html code gives more formating flexibility than just a grid.</p>
<p>I think my subgrid test case is equivalent to the demo example.&#160; Don&#39;t you agree?</p>
<p>Thanks,</p>
<p>Jerry</p>
]]></description>
        	        	<pubDate>Tue, 07 Apr 2009 13:58:28 +0300</pubDate>
        </item>
        <item>
        	<title>tony on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5895</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5895</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The first thai I will check is:</p>
<p>1. The existance of the method expandSubGridRow</p>
<p>2. The existance of the row with id - 2095526</p>
<p>3. If both are present check to see if you call the grid in something special case.</p>
<p>In your post you point me that you use jQuery load - what you try to do with load?</p>
<p>Also make a code simple like the example on the demo page and see what is happen.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 07 Apr 2009 08:15:34 +0300</pubDate>
        </item>
        <item>
        	<title>jlb30504 on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5865</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5865</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I have stripped the grid down to the bare bones and the expandSubGridRow still does not expand on the gridComplete event.&#160; The alert fires so I know the gridComplete event is firing but the POST for the jQuery().load never gets sent.&#160; I get the same result puting the jQuery().load in an external onclick="".&#160; The subgrid works fine when I click the "+".&#160;</p>
<p>I would appreciate any thoughts on how to debug further.&#160; I don&#39;t have a clue what to do next.</p>
<p>Thanks for all of your help,</p>
<p>Jerry</p>
<p>&#60;script src="jquery.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="jquery.jqGrid.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="js/jqModal.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script src="js/jqDnR.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript"&#62;<br />$(document).ready(function(){ <br />&#160;$("#list").jqGrid({<br />&#160;&#160;<a href="&#39;cem_db_if.php?q=1&#39;" target="_blank">url:&#39;cem_db_if.php?q=1&#39;</a>,<br />&#160;&#160;colNames:[&#39;Cemetery&#39;,&#39;USGS GNIS ID&#39;, &#39;County&#39;,&#39;USGS map&#39;,&#39;Location&#39;],<br />&#160;&#160;colModel :[ <br />&#160;&#160;&#160; {name:&#39;cem_name&#39;, index:&#39;cem_name&#39;, width:200, align:&#39;center&#39;}, <br />&#160;&#160;&#160; {name:&#39;cem_usgs&#39;, index:&#39;cem_usgs&#39;, width:100, align:&#39;center&#39;}, <br />&#160;&#160;&#160; {name:&#39;cem_county_name&#39;, index:&#39;cem_county_name&#39;, width:100, align:&#39;center&#39; }, <br />&#160;&#160;&#160; {name:&#39;cem_map&#39;, index:&#39;cem_map&#39;, width:100, align:&#39;center&#39;}, <br />&#160;&#160;&#160; {name:&#39;cem_description_short&#39;, index:&#39;cem_description_short&#39;, width:400, align:&#39;center&#39;} ],<br />&#160;&#160;height:&#39;auto&#39;,<br />&#160;&#160;rowNum:15,<br />&#160;&#160;rowList:[15,30,60],<br />&#160;&#160;sortname: &#39;cem_name&#39;,<br />&#160;&#160;sortorder: &#39;asc&#39;,<br />&#160;&#160;viewrecords: true,<br />&#160;&#160;imgpath: &#39;themes/basic/images&#39;,<br />&#160;&#160;caption: &#39;TNGenWeb Cemetery Database - Cemeteries&#39;,<br />&#160;&#160;shrinkToFit: &#39;true&#39;,<br />&#160;&#160;width:880,<br />&#160;&#160;gridComplete: function(){alert(&#39;grid complete!&#39;);jQuery(&#39;#list&#39;).expandSubGridRow(&#39;2095526&#39;);},<br />&#160;&#160;subGrid:&#39;true&#39;,<br />&#160;&#160;subGridRowExpanded: function(subgrid_id, row_id){$("#"+subgrid_id).load("cem_db_if.php?q=2", {table_name:"DT_Cemetery", subgrid_id:subgrid_id, row_id:row_id});},<br />&#160;});<br />});<br />&#60;/script&#62;</p>
]]></description>
        	        	<pubDate>Mon, 06 Apr 2009 11:05:41 +0300</pubDate>
        </item>
        <item>
        	<title>jlb30504 on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5841</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5841</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>Thanks for showing me that expandSubGridRow works.&#160; I have an interaction with my history code or something.&#160; I will back out code and see what is causing it.</p>
<p>jqgrid is a great thing.&#160; Thank you for making this happen.</p>
<p>All the best,</p>
<p>Jerry</p>
]]></description>
        	        	<pubDate>Fri, 03 Apr 2009 14:57:53 +0300</pubDate>
        </item>
        <item>
        	<title>tony on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5834</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5834</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Just for you I have prepared a example. Go in to the demo page</p>
<p>and run Advanced-&#62;Grid As SubGrid.</p>
<p>In this code I have just added:</p>
<p>....</p>
<p>&#160;&#160;&#160; gridComplete: function() {<br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#listsg11").expandSubGridRow("13");<br />&#160;&#160;&#160; },</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 03 Apr 2009 10:32:04 +0300</pubDate>
        </item>
        <item>
        	<title>jlb30504 on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5829</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5829</guid>
        	        	<description><![CDATA[<p>Yes, the alert fires if I click the plus image.&#160; I moved the expandSubGridRow to an onclick="" and clicking the link reloads the page instead of firing subGridRowExpanded.</p>
]]></description>
        	        	<pubDate>Fri, 03 Apr 2009 08:18:23 +0300</pubDate>
        </item>
        <item>
        	<title>tony on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5822</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5822</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Does the alert fire if you click on the plus image?</p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Fri, 03 Apr 2009 07:05:37 +0300</pubDate>
        </item>
        <item>
        	<title>jlb30504 on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5821</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5821</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>I took the function details out of the picture by changing the subGridRowExpanded to just be an alert:</p>
<p>subGridRowExpanded: function(subgrid_id, row_id){alert("details")},</p>
<p>The subGrid still doesn&#39;t expand.</p>
<p>Jerry</p>
]]></description>
        	        	<pubDate>Fri, 03 Apr 2009 06:58:12 +0300</pubDate>
        </item>
        <item>
        	<title>jlb30504 on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5817</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5817</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>details function does not execute.&#160; I am using the rsh log to debug so I added log at the start and end of details and nothing shows in the log including the history.</p>
<p>function details(table, subgrid_id, row_id,q) { <br />&#160;log(table+" details start");<br />&#160;var historyData = new Object();<br />&#160;historyData.sortname=$("#list").getGridParam(&#39;sortname&#39;);<br />&#160;historyData.sortorder=$("#list").getGridParam(&#39;sortorder&#39;);<br />&#160;historyData.rowNum=$("#list").getGridParam(&#39;rowNum&#39;);<br />&#160;historyData.table = table;<br />&#160;historyData.subgrid_id = subgrid_id;<br />&#160;historyData.row_id = row_id;<br />&#160;dhtmlHistory.add("details",historyData);<br />&#160;var msg = "&#60;b&#62;A history event has been added:&#60;/b&#62; [newLocation=details &#124; historyData="+historyData.sortname+"&#124;"+historyData.sortorder+"&#124;"+historyData.rowNum+"&#124;"+historyData.table+"&#124;"+historyData.subgrid_id+"&#124;"+historyData.row_id+"]";<br />&#160;log(msg);<br />&#160;$("#"+subgrid_id).load("cem_db_if.php?q="+q, {table_name:table, subgrid_id:subgrid_id, row_id:row_id});<br />&#160;log(table+" details complete");<br />}//end details</p>
]]></description>
        	        	<pubDate>Fri, 03 Apr 2009 06:41:00 +0300</pubDate>
        </item>
        <item>
        	<title>tony on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5804</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5804</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>And what do details function? Check to see if this function is raised - i.e. in the body of the function make alert and at the end too.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 03 Apr 2009 02:25:56 +0300</pubDate>
        </item>
        <item>
        	<title>jlb30504 on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5794</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5794</guid>
        	        	<description><![CDATA[<p>My grid configuration is below.&#160; I am using jqGrid&#160; 3.4.2.</p>
<p>I am trying to use expandSubGridRow to restore history using rsh.&#160; The expandSubGridRow doesn&#39;t expand the subgrid as expected.&#160; The grid is unchanged.&#160; After my history code didn&#39;t work, I did the simple test case below where I try to expand the first row in my table on load complete.&#160; The row id is hard coded so I know it is correct.&#160; The code below loads the standard grid without the expanded subgrid.</p>
<p>How can I debug?</p>
<p>Thanks,</p>
<p>Jerry</p>
<p>&#160;&#160;&#160; $("#list").jqGrid({<br />&#160;&#160;&#160; &#160;&#160;&#160; url:&#39;cem_db_if.php?q=1&#38;table_name=DT_Cemetery&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; colNames:[&#39;Cemetery&#39;,&#39;USGS GNIS ID&#39;, &#39;County&#39;,&#39;USGS map&#39;,&#39;Location&#39;],<br />&#160;&#160;&#160; &#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160; {name:&#39;cem_name&#39;, index:&#39;cem_name&#39;, width:200, align:&#39;center&#39;}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160; {name:&#39;cem_usgs&#39;, index:&#39;cem_usgs&#39;, width:100, align:&#39;center&#39;}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160; {name:&#39;cem_county_name&#39;, index:&#39;cem_county_name&#39;, width:100, align:&#39;center&#39; }, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160; {name:&#39;cem_map&#39;, index:&#39;cem_map&#39;, width:100, align:&#39;center&#39;}, <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160; {name:&#39;cem_description_short&#39;, index:&#39;cem_description_short&#39;, width:400, align:&#39;center&#39;} ],<br />&#160;&#160;&#160; &#160;&#160;&#160; height:&#39;auto&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; pager: &#39;#pager&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; rowNum:limit,<br />&#160;&#160;&#160; &#160;&#160;&#160; rowList:[15,30,60],<br />&#160;&#160;&#160; &#160;&#160;&#160; sortname: sidx,<br />&#160;&#160;&#160; &#160;&#160;&#160; sortorder: sord,<br />&#160;&#160;&#160; &#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; imgpath: &#39;themes/basic/images&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; caption: &#39;TNGenWeb Cemetery Database - Cemeteries&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; shrinkToFit: &#39;true&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; width:880,<br />&#160;&#160;&#160; &#160;&#160;&#160; gridComplete: function(){$("#list").expandSubGridRow(2084527);},<br />&#160;&#160;&#160; &#160;&#160;&#160; postData:{lim_county:lim_county,lim_cem_id:lim_cem_id,history:&#39;yes&#39;},<br />&#160;&#160;&#160; &#160;&#160;&#160; subGrid:&#39;true&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; subGridRowExpanded: function(subgrid_id, row_id){details("DT_Cemetery",subgrid_id, row_id,2)},<br />&#160;&#160;&#160; &#160;&#160;&#160; subGridRowColapsed: function() {google.maps.Unload()},<br />&#160;&#160;&#160; &#160;&#160;&#160; loadui:&#39;block&#39;<br />&#160;&#160;&#160; }).navGrid(&#39;#pager&#39;,{edit:false,add:false,del:false})<br />&#160;&#160;&#160; .navButtonAdd(&#39;#pager&#39;,{<br />&#160;&#160;&#160; &#160;&#160;&#160; caption:&#39;burials&#39;, buttonimg:&#39;&#39;, onClickButton:<br />&#160;&#160;&#160; &#160;&#160;&#160; function() {burial()}, <br />&#160;&#160;&#160; &#160;&#160;&#160; position:"last",title:&#39;click to change to Burial View&#39;<br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; });</p>
]]></description>
        	        	<pubDate>Thu, 02 Apr 2009 16:49:49 +0300</pubDate>
        </item>
        <item>
        	<title>tony on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5775</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5775</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>To help - what does not work?</p>
<p>Please describe and if possible write the configuration</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 02 Apr 2009 10:44:47 +0300</pubDate>
        </item>
        <item>
        	<title>jlb30504 on expandSubGridRow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5751</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/expandsubgridrow#p5751</guid>
        	        	<description><![CDATA[<p>I am having difficulty getting expandSubGridRow to work.&#160; I did a simple test case with rowid hard coded and triggered by gridComplete and that doesn&#39;t work either.</p>
<p>Is expandSubGridRow supposed to work with grid as a subgrid?</p>
<p>Any ideas on how to debug?</p>
<p>Thanks,</p>
<p>Jerry</p>
]]></description>
        	        	<pubDate>Wed, 01 Apr 2009 17:09:45 +0300</pubDate>
        </item>
</channel>
</rss>