<?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: All nodes expanding on click</title>
	<link>http://www.trirand.com/blog/?page_id=393/treegrid/all-nodes-expanding-on-click</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/all-nodes-expanding-on-click/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jbenckert on All nodes expanding on click</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/all-nodes-expanding-on-click#p25629</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/all-nodes-expanding-on-click#p25629</guid>
        	        	<description><![CDATA[<p>I&#39;ve solved my own problem.</p>
</p>
<p>If anyone is interested, I had to add an Id to each tree item beyond the row Ids of the things in the database. &#160;This had to be done because the children were in another database table.</p>
</p>
<p>Thanks.</p>
</p>
<p>-Joe</p>
]]></description>
        	        	<pubDate>Tue, 10 Jan 2012 15:47:20 +0200</pubDate>
        </item>
        <item>
        	<title>jbenckert on All nodes expanding on click</title>
        	<link>http://www.trirand.com/blog/?page_id=393/treegrid/all-nodes-expanding-on-click#p25628</link>
        	<category>TreeGrid</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/treegrid/all-nodes-expanding-on-click#p25628</guid>
        	        	<description><![CDATA[<p>I&#39;ve got the tree grid data setup correctly and returning via json and all is well however there is one problem I can&#39;t track down. &#160;When I click on any root node, they all expand. &#160;The heirarchy is obviously correct but I&#39;m not sure what I&#39;ve done wrong. &#160;Configuration is below. &#160;Thanks in advance for any help that someone can provide.</p>
</p>
<p>Thanks</p>
</p>
<p>-Joe Benckert</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4614' value='Select Code' data-codeid='sfcode4614' /></p>
<div class='sfcode' id='sfcode4614'>
<p>//Custom parameter values</p>
<p>var listDataURL = &#39;/cms/getDashboardCampaignData.do&#39;;</p>
<p>var initialPageSize = 20;</p>
<p>var maxRecords = 10000;</p>
<p>var pageSizes = [initialPageSize, 40, 80,  maxRecords];</p>
</p>
<p>// jqGrid Configurations</p>
<p>jq(function() {</p>
<p>jQuery(&#34;#campaignPerformanceGrid&#34;).jqGrid({</p>
<p>url:listDataURL,</p>
<p>datatype: &#39;json&#39;,</p>
<p>mtype: &#39;POST&#39;,</p>
<p>colNames:[&#39;campaignID&#39;, &#39;flightID&#39;, &#39;Name&#39;, &#39;Start&#39;,&#39;End&#39;, &#39;Proj %&#39;, &#39;Ordered&#39;, &#39;Delivered&#39;, &#39;CTR&#39;,&#39;Priority&#39;,&#39;Interval&#39;,&#39;&#39;],</p>
<p>colModel:[</p>
<p>{name:&#39;campaignId&#39;,index:&#39;campaignId&#39;, hidden:true, key:true},</p>
<p>{name: &#39;flightId&#39;, index: &#39;flightId&#39;, hidden: true},</p>
<p>{name:&#39;name&#39;,index:&#39;name&#39;,sorttype:&#34;text&#34;, width:400},</p>
<p>{name:&#39;startDateStr&#39;,index:&#39;startDate&#39;,sorttype:&#34;date&#34;, width:200},</p>
<p>{name:&#39;endDateStr&#39;,index:&#39;endDate&#39;,sorttype:&#34;date&#34;, width:200},</p>
<p>{name:&#39;projectedPercentage&#39;,index:&#39;completionPercentage&#39;,sorttype:&#34;float&#34;, width:200},</p>
<p>{name:&#39;ordered&#39;,index:&#39;ordered&#39;,sorttype:&#34;int&#34;},</p>
<p>{name:&#39;delivered&#39;,index:&#39;delivered&#39;,sorttype:&#34;int&#34;},</p>
<p>{name:&#39;ctr&#39;,index:&#39;ctr&#39;,sorttype:&#34;float&#34;},</p>
<p>{name:&#39;priority&#39;,index:&#39;priority&#39;,sorttype:&#34;int&#34;},</p>
<p>{name:&#39;interval&#39;,index:&#39;interval&#39;,sorttype:&#34;string&#34;}, //has mouseover</p>
<p>{name:&#39;flightIdMoreInfo&#39;, index:&#39;flightId&#39;, formatter:moreInfoFormatter, sortable:false}</p>
<p>],</p>
<p>postData: { },</p>
<p>rowNum:initialPageSize,</p>
<p>rowList:pageSizes,</p>
<p>height: &#34;auto&#34;,</p>
<p>width: 1200,</p>
<p>//autowidth: true,</p>
<p>altRows     : true,</p>
<p>ignoreCase: true, //Filter and Sort is case-insensitive</p>
<p>pager: &#39;#pager&#39;,</p>
<p>viewrecords: true,</p>
<p>sortname: &#39;name&#39;,</p>
<p>sortorder: &#34;asc&#34;,</p>
<p>caption:&#34;&#34;,</p>
<p>emptyrecords: &#34;No data found&#34;,</p>
<p>loadonce: true,</p>
<p>loadComplete: setupMoreInfo,</p>
<p>jsonReader : {</p>
<p>root: &#34;rows&#34;,</p>
<p>page: &#34;page&#34;,</p>
<p>total: &#34;total&#34;,</p>
<p>records: &#34;records&#34;,</p>
<p>repeatitems: false,</p>
<p>cell: &#34;cell&#34;,</p>
<p>id: &#34;id&#34;,</p>
<p>subgrid: {</p>
<p>root:&#34;rows&#34;,</p>
<p>repeatitems: false,</p>
<p>cell:&#34;cell&#34;</p>
<p>}</p>
<p>},</p>
<p>treeGrid: true,</p>
<p>treedatatype: &#39;json&#39;,</p>
<p>treeGridModel : &#39;adjacency&#39;,</p>
<p>treeReader: { level_field: &#39;tree_level&#39;, parent_id_field: &#39;tree_parent&#39;, leaf_field: &#39;tree_leaf&#39;, expanded_field: &#39;tree_expanded&#39;, loaded: &#39;tree_loaded&#39;, icon_field: &#39;tree_icon&#39; },</p>
<p>ExpandColumn: &#39;name&#39;</p>
<p>});</p>
</div>
]]></description>
        	        	<pubDate>Tue, 10 Jan 2012 15:23:23 +0200</pubDate>
        </item>
</channel>
</rss>