<?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: clicking in node does not collapse childs</title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/clicking-in-node-does-not-collapse-childs</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/clicking-in-node-does-not-collapse-childs/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rixxie on clicking in node does not collapse childs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/clicking-in-node-does-not-collapse-childs#p23954</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/clicking-in-node-does-not-collapse-childs#p23954</guid>
        	        	<description><![CDATA[<p>Not sure if this is generated by your script or it happens when you paste them. But look after the id number the closing quote is not " but &#8243; instead.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6415' value='Select Code' data-codeid='sfcode6415' /></p>
<div class='sfcode' id='sfcode6415'>{&#34;total&#34;:1,&#34;page&#34;:1,&#34;records&#34;:7,&#34;rows&#34;:[<br />{&#34;id&#34;:&#34;1&#34;,&#34;cell&#34;:[&#34;97&#34;,&#34;Varustus&#34;,&#34;Store/Browse/97&#34;,&#34;0&#34;,null,&#34;false&#34;,&#34;true&#34;]},<br />{&#34;id&#34;:&#34;2&#8243;,&#34;cell&#34;:[&#34;88&#34;,&#34;Matkavarustus&#34;,&#34;Store/Browse/88&#34;,&#34;0&#34;,null,&#34;false&#34;,&#34;true&#34;]},<br />{&#34;id&#34;:&#34;3&#8243;,&#34;cell&#34;:[&#34;146&#34;,&#34;Tarvikud&#34;,&#34;Store/Browse/146&#34;,&#34;0&#34;,null,&#34;false&#34;,&#34;true&#34;]},<br />{&#34;id&#34;:&#34;4&#8243;,&#34;cell&#34;:[&#34;84&#34;,&#34;Rehvid&#34;,&#34;Store/Browse/84&#34;,&#34;0&#34;,null,&#34;false&#34;,&#34;true&#34;]},<br />{&#34;id&#34;:&#34;5&#8243;,&#34;cell&#34;:[&#34;78&#34;,&#34;Lisatarvikud&#34;,&#34;Store/Browse/78&#34;,&#34;0&#34;,null,&#34;false&#34;,&#34;true&#34;]},<br />{&#34;id&#34;:&#34;6&#8243;,&#34;cell&#34;:[&#34;95&#34;,&#34;&#213;lid/Vedelikud&#34;,&#34;Store/Browse/95&#34;,&#34;0&#34;,null,&#34;false&#34;,&#34;true&#34;]},<br />{&#34;id&#34;:&#34;7&#8243;,&#34;cell&#34;:[&#34;150&#34;,&#34;Muu&#34;,&#34;Store/Browse/150&#34;,&#34;0&#34;,null,&#34;false&#34;,&#34;true&#34;]}<br />]}</div>
<p>
Compare "id":"1" and "id":"2&#8243;</p>
]]></description>
        	        	<pubDate>Thu, 14 Jul 2011 06:37:28 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on clicking in node does not collapse childs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/clicking-in-node-does-not-collapse-childs#p23115</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/clicking-in-node-does-not-collapse-childs#p23115</guid>
        	        	<description><![CDATA[<p>Root level data returned to treeGrid is:</p>
<blockquote>
<p>{"total":1,"page":1,"records":7,"rows":[{"id":"1","cell":["97","Varustus","Store/Browse/97","0",null,"false","true"]},{"id":"2","cell":["88","Matkavarustus","Store/Browse/88","0",null,"false","true"]},{"id":"3","cell":["146","Tarvikud","Store/Browse/146","0",null,"false","true"]},{"id":"4","cell":["84","Rehvid","Store/Browse/84","0",null,"false","true"]},{"id":"5","cell":["78","Lisatarvikud","Store/Browse/78","0",null,"false","true"]},{"id":"6","cell":["95","&#213;lid/Vedelikud","Store/Browse/95","0",null,"false","true"]},{"id":"7","cell":["150","Muu","Store/Browse/150","0",null,"false","true"]}]}</p>
</blockquote>
<p>If clicked in first root node, data returned is:</p>
<blockquote>
<p>{"total":1,"page":1,"records":5,"rows":[{"id":"1","cell":["85","Riided","Store/Browse/85","1","1","false","true"]},{"id":"2","cell":["72","Jalan&#245;ud","Store/Browse/72","1","1","false","true"]},{"id":"3","cell":["76","Kindad","Store/Browse/76","1","1","false","true"]},{"id":"4","cell":["73","Kaitsmed","Store/Browse/73","1","1","false","true"]},{"id":"5","cell":["83","Prillid","Store/Browse/83","1","1","false","true"]}]}</p>
</p>
</blockquote>
<p>If clicked in root node again, this child does not collapse. As you see it looks like ids are number always. If worked with other data, child colllapses. So yes, it looks like it is data issue. What is wrong with this data ? How to fix ?</p></p>
]]></description>
        	        	<pubDate>Wed, 11 May 2011 15:21:00 +0300</pubDate>
        </item>
        <item>
        	<title>jeremyjarrell on clicking in node does not collapse childs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/clicking-in-node-does-not-collapse-childs#p23102</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/clicking-in-node-does-not-collapse-childs#p23102</guid>
        	        	<description><![CDATA[<p>Just had a similar issue, maybe it will help you.</p>
<p>Make sure your IDs do not contain spaces, otherwise jqGrid will not be able to build the query string to find the child node to close it.</p>
</p>
<p>For example, my child node had the ID of &#39;#Child Node&#39;. &#160;When jqGrid built the query string to locate this node it stopped at whitespace which caused it to only look &#39;#Child&#39;. &#160;Since this node does not exist the resulting matched set was empty causing no nodes to be closed. &#160;Correcting my IDs to not contain whitespace remedied the problem.</p>
</p>
<p>See the collapseRow function in the jqGrid source for more info.</p>
]]></description>
        	        	<pubDate>Tue, 10 May 2011 22:32:33 +0300</pubDate>
        </item>
        <item>
        	<title>kobruleht on clicking in node does not collapse childs</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/clicking-in-node-does-not-collapse-childs#p23050</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/clicking-in-node-does-not-collapse-childs#p23050</guid>
        	        	<description><![CDATA[<p>If clicked in root node, treegrid properly shows leafs. Clicking again in root node does not close left nodes. How to fix this so that child nodes are closed on click ?</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(function () {</p>
<p>&#160;&#160;&#160;&#160;&#160; $("#west-grid").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/Store/Store/GridData&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: "POST",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: "auto",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadui: "disable",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; treeGridModel: "adjacency",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: ["id", "", "url"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "id", width: 1, hidden: true, key: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: "menu" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name: "url", width: 1, hidden: true }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; treeGrid: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ExpandColumn: "menu",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 200,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ExpandColClick: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; treeIcons: { leaf: &#39;ui-icon-document-b&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function (rowid) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var treedata = $("#west-grid").jqGrid(&#39;getRowData&#39;, rowid);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (treedata.isLeaf == "true") {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; window.location = &#39;/Store/&#39; + treedata.url;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
]]></description>
        	        	<pubDate>Fri, 06 May 2011 22:57:19 +0300</pubDate>
        </item>
</channel>
</rss>