<?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: Expanding Rows and ensuring ChildNodes visible</title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/expanding-rows-and-ensuring-childnodes-visible</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/treegrid/expanding-rows-and-ensuring-childnodes-visible/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kobruleht on Expanding Rows and ensuring ChildNodes visible</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/expanding-rows-and-ensuring-childnodes-visible#p23062</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/expanding-rows-and-ensuring-childnodes-visible#p23062</guid>
        	        	<description><![CDATA[<p>Please use setTimeout:</p>
<p>gridComplete: function() {<br />&#160; var rData = mygrid.jqGrid(&#39;getGridParam&#39;, &#39;data&#39;);<br />&#160; if(rData[0]){<br />&#160;&#160;&#160; setTimeout(function(){<br />&#160;&#160;&#160;&#160;&#160; $empList.expandRow(rData[0]);<br />&#160;&#160;&#160;&#160;&#160; $empList.expandNode(rData[0]);<br />&#160;&#160;&#160; }, 0);<br />&#160; }<br />},</p>
]]></description>
        	        	<pubDate>Sun, 08 May 2011 10:49:52 +0300</pubDate>
        </item>
        <item>
        	<title>Romyn on Expanding Rows and ensuring ChildNodes visible</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/expanding-rows-and-ensuring-childnodes-visible#p11492</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/expanding-rows-and-ensuring-childnodes-visible#p11492</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>A couple of queries if I may....</p>
</p>
<p>1. I have a tree-grid which has enough records that a vertical scroll bar appears. If a user selects (and expands) the a record near the bottom of the viewable area when it expands not all the childnodes are visible.</p>
<p>Is there a way of auto-scrolling so that when a node is expanded all it&#39;s children are visible.</p>
</p>
<p>2. I also wish to select and expand a specific node in the tree-grid.</p>
<p>I can successfully select the row using:-</p>
<p>&#160;&#160;&#160; var mygrid = $("#grid_r");<br />&#160;&#160;&#160; mygrid.setSelection("O_002", true);</p>
<p>(where 0_002 is the id of the row)</p>
<p>but I can&#39;t seem to get it to expand. I&#39;m using:-</p>
<p>&#160;&#160;&#160; //var record = mygrid.getInd(mygrid[0].rows, "O_001" true);<br />&#160;&#160;&#160; var record = mygrid.getInd("O_002");<br />&#160;&#160;&#160; mygrid.expandRow(record);<br />&#160;&#160;&#160; mygrid.expandNode(record);</p>
<p>to try and do that - trying both versions of getInd above but with no luck.</p>
</p>
<p>Any assistance, as always, would be much appreciated.</p>
</p>
<p>Thanks in advance</p>
<p>Romyn</p></p>
]]></description>
        	        	<pubDate>Wed, 04 Nov 2009 12:50:08 +0200</pubDate>
        </item>
</channel>
</rss>