<?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: Get parent id from node expand event</title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/get-parent-id-from-node-expand-event</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/get-parent-id-from-node-expand-event/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>borgenk on Get parent id from node expand event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/get-parent-id-from-node-expand-event#p17252</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/get-parent-id-from-node-expand-event#p17252</guid>
        	        	<description><![CDATA[<p>Hi and thanks for the quick reply!</p>
<p>gridComplete didn&#39;t do much difference, but it got me thinking on other events so I eventually ended up with beforeRequest where nodeid is still intact (seems like something is resetting the post parameter for nodeid and n_lvl). Obvisously "beforeRequest" happens too early, but I got it working (tho maybe not an optimal solution).</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1543' value='Select Code' data-codeid='sfcode1543' /></p>
<div class='sfcode' id='sfcode1543'>
<p>beforeRequest: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#grid-table&#34;).data(&#39;nodeid&#39;, $(this).getPostDataItem(&#39;nodeid&#39;))</p>
<p>},</p>
<p>gridComplete: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.dump($(&#34;#grid-table&#34;).data(&#39;nodeid&#39;))</p>
<p>}</p>
</div>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 23:00:35 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Get parent id from node expand event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/get-parent-id-from-node-expand-event#p17225</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/get-parent-id-from-node-expand-event#p17225</guid>
        	        	<description><![CDATA[<p>HEllo,</p>
<p>Try with gridComplete event.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 19:47:24 +0300</pubDate>
        </item>
        <item>
        	<title>borgenk on Get parent id from node expand event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/get-parent-id-from-node-expand-event#p17206</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/get-parent-id-from-node-expand-event#p17206</guid>
        	        	<description><![CDATA[<div class="post-text">
<p>Hello,</p>
<p>I&#39;m trying to copy values from parent node to its child nodes when a user  expand the parent node, but I&#39;m having some troubles getting the parent&#39;s node id (row id).</p>
<p>What I&#39;ve been trying so  far is using the loadComplete option which I know triggers on node  expand and by inspecting the post parameters in firebug I see nodeid is  correct.</p>
<pre class="prettyprint"><p><input type='button' class='sfcodeselect' name='sfselectit5920' value='Select Code' data-codeid='sfcode5920' /></p><div class='sfcode' id='sfcode5920'><br />loadComplete: function() {<br /><br />&#160; &#160; $.dump($(&#34;#grid-table&#34;).getPostData()),<br /><br />&#160; &#160; $.dump($(&#34;#grid-table&#34;).getPostDataItem(&#39;nodeid&#39;)),<br /><br />&#160; &#160; $.dump($(&#39;#grid-table&#39;).getGridParam(&#34;nodeid&#34;))<br /><br />}</div><br /></pre>
<p>This is only giving me empty strings.</p>
</div>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 08:29:13 +0300</pubDate>
        </item>
</channel>
</rss>