<?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: treeGrid getNodeParent no longer works as documented</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-getnodeparent-no-longer-works-as-documented</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/bugs/treegrid-getnodeparent-no-longer-works-as-documented/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>InsaneWookie on treeGrid getNodeParent no longer works as documented</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-getnodeparent-no-longer-works-as-documented#p18627</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/treegrid-getnodeparent-no-longer-works-as-documented#p18627</guid>
        	        	<description><![CDATA[<p>Even more digging shows that getRowData isn&#39;t even returning the correct data</p>
</p>
<p>The raw row data shows isLeaf as a boolean true but when I use getRowData it returns a string "false"</p>
</p>
<p>Edit: It seems to be NOT seeing a row as leaf if it has no parents when using getRowData</p>
]]></description>
        	        	<pubDate>Fri, 16 Jul 2010 02:51:18 +0300</pubDate>
        </item>
        <item>
        	<title>InsaneWookie on treeGrid getNodeParent no longer works as documented</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-getnodeparent-no-longer-works-as-documented#p18626</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/treegrid-getnodeparent-no-longer-works-as-documented#p18626</guid>
        	        	<description><![CDATA[<p>That kind of works but getRowData seems to be converting all the data to strings</p>
</p>
<p>e.g. isLeaf in the raw grid data is of type boolean but getRowData is converting it to type string.</p>
<p>So doing a compare if(getRowData(rowId).isLeaf == false) will always fail</p>
]]></description>
        	        	<pubDate>Fri, 16 Jul 2010 02:29:38 +0300</pubDate>
        </item>
        <item>
        	<title>tony on treeGrid getNodeParent no longer works as documented</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-getnodeparent-no-longer-works-as-documented#p18606</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/treegrid-getnodeparent-no-longer-works-as-documented#p18606</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes some things are changed in 3.7.</p>
<p>Try to use not getInd, but getRowData.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 15 Jul 2010 10:29:51 +0300</pubDate>
        </item>
        <item>
        	<title>InsaneWookie on treeGrid getNodeParent no longer works as documented</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/treegrid-getnodeparent-no-longer-works-as-documented#p18593</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/treegrid-getnodeparent-no-longer-works-as-documented#p18593</guid>
        	        	<description><![CDATA[<p>I used to be able to get the perent node in a treeGrid by doing what is described in the wiki (<a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:treegrid#methods" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....id#methods</a>).</p>
</p>
<p>But this no longer seems to work</p>
<p>I am using the treeGrid nessted model.</p>
</p>
<p>I was going:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3749' value='Select Code' data-codeid='sfcode3749' /></p>
<div class='sfcode' id='sfcode3749'>var parentNodeId = grid.getNodeParent(grid.getInd(selectedRowId, true)).id;</div>
</p>
<p>I&#39;m not sure if its a bug in the getNodeParent or getInd</p>
<p>It seems that getNodeParent is expecting a raw grid data record. But getInd is returning DOM for the rowId</p>
</p>
<p>I can get the parent node buy going:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6084' value='Select Code' data-codeid='sfcode6084' /></p>
<div class='sfcode' id='sfcode6084'>var record = null;<br />for (i=0; i&#60; grid[0].p.data.length; i++)<br />{<br />&#160;&#160;&#160;&#160;&#160; if(grid[0].p.data[i]._id_ == selectedRowId) { record = grid[0].p.data[i]; }<br />}&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />var parentNodeId = grid.getNodeParent(record).id;</div>
<p>But this is not an ideal solution</p></p>
]]></description>
        	        	<pubDate>Thu, 15 Jul 2010 03:44:04 +0300</pubDate>
        </item>
</channel>
</rss>