<?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: jqgrid 4 Adjacency Model expanded_field problem </title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem</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/jqgrid-4-adjacency-model-expanded_field-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on jqgrid 4 Adjacency Model expanded_field problem </title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p23012</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p23012</guid>
        	        	<description><![CDATA[<p>Because of&#160;<a href="https://github.com/tonytomov/jqGrid/blob/v4.0.0/js/grid.treegrid.js#L67" target="_blank">the line&#160;67</a> of the file&#160;grid.treegrid.js:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5068' value='Select Code' data-codeid='sfcode5068' /></p>
<div class='sfcode' id='sfcode5068'>ldat[expanded]=((ldat[expanded]==&#34;true&#34;&#124;&#124;ldat[expanded]===true)?true:false)&#160;<strong>&#38;&#38; ldat[loaded]</strong>;<br />if(ldat[expanded] === true) {<br />&#160; &#160; twrap += $t.p.treeIcons.minus+&#34; tree-minus treeclick&#39;&#34;;<br />} else {<br />&#160; &#160; twrap += $t.p.treeIcons.plus+&#34; tree-plus treeclick&#39;&#34;;<br />}&#160;</div>
<p>If the row of data (<strong>ldat</strong>) not contain the <strong>loaded</strong> property, the construct <strong>ldat[loaded]&#160;</strong>will be equal to <strong>undefined</strong>. The expression <strong>true &#38;&#38; undefined</strong>&#160;is equal to <strong>undefined</strong>.&#160;On the other side <strong>false &#38;&#38; undefined</strong> is equal to&#160;<strong>false</strong>. So strange is JavaScript!</p>
<p>Thus in case of undefined <strong>loaded</strong>&#160;prioperty the value of <strong>ldat[expanded]</strong>&#160;will be set either to <strong>undefined</strong> or to <strong>false</strong> and never to <strong>true</strong>. So the node will not expanded in case of undefined <strong>loaded</strong>&#160;prioperty.</p>
<p>The code fragent which I described above is new in tree grid 4.0. So same code which run under jqGrid 3.8.2 and expanded some nodes could not expand the same node in jqGrid 4.0.</p>
<p>If one would change the code of jqGrid so that one would test</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1410' value='Select Code' data-codeid='sfcode1410' /></p>
<div class='sfcode' id='sfcode1410'>if(ldat[expanded] === <strong>false</strong>) {<br />&#160; &#160; twrap += $t.p.treeIcons.plus+&#34; tree-plus treeclick&#39;&#34;;<br />} else {<br />&#160; &#160; twrap += $t.p.treeIcons.minus+&#34; tree-minus treeclick&#39;&#34;;<br />}&#160;</div>
<p>instead of</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7574' value='Select Code' data-codeid='sfcode7574' /></p>
<div class='sfcode' id='sfcode7574'>if(ldat[expanded] === true) {<br />&#160; &#160;...&#160;</div>
<p>the problem will also fixed.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 03 May 2011 20:10:18 +0300</pubDate>
        </item>
        <item>
        	<title>greyblue on jqgrid 4 Adjacency Model expanded_field problem </title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p23007</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p23007</guid>
        	        	<description><![CDATA[<p>Thank you very much, i had the same problem.</p>
</p>
<p>Any idea why this value "loaded" is now needed?</p>
]]></description>
        	        	<pubDate>Tue, 03 May 2011 19:01:41 +0300</pubDate>
        </item>
        <item>
        	<title>eai on jqgrid 4 Adjacency Model expanded_field problem </title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22999</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22999</guid>
        	        	<description><![CDATA[<p>Thank you Oleg,</p>
<p>I like JSON too.</p>
<p>Really I use XML for Tree only because it does not work with JSON.</p>
<p>Maybe be I do not use tree and JSON right way, but I do not have any correct example with tree and JSON yet</p>
</p>
<p>Best Regards</p>
<p>Evgeny&#160;</p>
</p>
<p>P.S.</p>
<p>You correction with "loaded=true" does work good with XML too.</p>
]]></description>
        	        	<pubDate>Tue, 03 May 2011 12:38:13 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on jqgrid 4 Adjacency Model expanded_field problem </title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22997</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22997</guid>
        	        	<description><![CDATA[<p>Hi!</p>
<p>I personally prefer to use JSON instead of XML if it is possible, but you can do the same also with XML data. Look at <a href="http://stackoverflow.com/questions/5862336/jqgrid-autoloading-treegrid-issue/5867537#5867537" target="_blank">the answer</a>&#160;on the stackoverflow.com&#160;which I recently wrote. Probably it explain the problems which you has.</p>
<p>Best regards<br />Oleg&#160;</p></p>
]]></description>
        	        	<pubDate>Tue, 03 May 2011 12:27:43 +0300</pubDate>
        </item>
        <item>
        	<title>eai on jqgrid 4 Adjacency Model expanded_field problem </title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22961</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22961</guid>
        	        	<description><![CDATA[<p>Demo does work well</p>
<p>Looks like I have to use JSON instead XML</p>
</p>
<p>Thanks a lot</p>
]]></description>
        	        	<pubDate>Thu, 28 Apr 2011 08:45:22 +0300</pubDate>
        </item>
        <item>
        	<title>OlegK on jqgrid 4 Adjacency Model expanded_field problem </title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22943</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22943</guid>
        	        	<description><![CDATA[<p>I had close problem. To solve it I have to set <strong>loaded:true</strong> property for all nodes having&#160;<strong>expanded:true</strong>.</p>
<p>Look at <a href="http://www.ok-soft-gmbh.com/jqGrid/LocalAdjacencyTree4.htm" target="_blank">the demo</a>.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Tue, 26 Apr 2011 20:14:17 +0300</pubDate>
        </item>
        <item>
        	<title>eai on jqgrid 4 Adjacency Model expanded_field problem </title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22908</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/jqgrid-4-adjacency-model-expanded_field-problem#p22908</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>I am testing jqgrid 4</p>
<p>I try to use tree mode with Adjacency Model.</p>
<p>Grid loads tree successfull, but ignore expanded_field.</p>
<p>My code does work with jqgrid version 3.6 jQuery 1.3.2</p>
</p>
<p>I use jquery &#160;1.5.1 with jqgrid 4</p>
</p>
<p>Looks like it is a bug.</p>
</p>
<p>Evgeny</p>
]]></description>
        	        	<pubDate>Sat, 23 Apr 2011 11:56:18 +0300</pubDate>
        </item>
</channel>
</rss>