<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : treeview nodeclick</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : treeview nodeclick]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 16:56:19 +0000</pubDate>
  <lastBuildDate>Tue, 04 Jan 2011 10:58:00 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17735</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[treeview nodeclick : I understand the logic of what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62068&amp;title=treeview-nodeclick#62068</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 04 January 2011 at 10:58am<br /><br />I understand the logic of what you're saying but, I believe that the behaviour of the MS treeview is different (i.e., expanded can equal true even when no child nodes exist). I appreciate your time on this and will rewrite my code so that it works without using the expanded property.]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 10:58:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62068&amp;title=treeview-nodeclick#62068</guid>
  </item> 
  <item>
   <title><![CDATA[treeview nodeclick : Okay, I think I see where I misunderstood...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62067&amp;title=treeview-nodeclick#62067</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 04 January 2011 at 10:38am<br /><br />Okay, I think I see where I misunderstood now - the Expanded property is working for you when a Node has Child Nodes, but not if the Node has no child nodes.<br><br>The documentation doesn't mention whether or not this is the expected behaviour, but to me it makes sense - How can a Node be expanded when there is nothing under it to expand? Nodes also don't show the +/- icon when there are no children, so there is no visual confusion either.<br><br>You have a couple of other options though - if you aren't using Checkboxes in your TreeView, you could substitute the Node.Checked property for the Node.Expanded property. Alternately, if you aren't using the Node.Tag property, you could use it for the same purpose.<br><br><br>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 10:38:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62067&amp;title=treeview-nodeclick#62067</guid>
  </item> 
  <item>
   <title><![CDATA[treeview nodeclick : That&amp;#039;s strange... I had added...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62064&amp;title=treeview-nodeclick#62064</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 04 January 2011 at 10:01am<br /><br />That's strange... I had added the node.expanded value to the end of the existing debug statement and was seeing the expanded value always equal to false. I did find that if I added a child node to the 'Test' node that the expanded property was changing each time I clicked the 'Test' node. I do not think that I made any changes to your sample project... were nodes 'Test2' - 'Test4' child nodes in your sample (they are parent nodes, without children in the sample code that I have)?]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 10:01:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62064&amp;title=treeview-nodeclick#62064</guid>
  </item> 
  <item>
   <title><![CDATA[treeview nodeclick : Strange - I&amp;#039;m not sure what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62063&amp;title=treeview-nodeclick#62063</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 04 January 2011 at 9:48am<br /><br />Strange - I'm not sure what is going on on your end.<br><br>I used your code and added a Debug.Print "Expanded: " &amp; Node.Expanded line, and when I click the parent node a few times, it expands and shrinks as expected for me*<br><br>Here's my debug output:<br><table width="99%"><tr><td><pre class="BBcode"><br>NODE CLICKED: Test, Index: 1 @ 35087.41<br>Expanded: False<br>NODE CLICKED: Test, Index: 1 @ 35088.11<br>Expanded: True<br>NODE CLICKED: Test, Index: 1 @ 35088.93<br>Expanded: False<br>NODE CLICKED: Test, Index: 1 @ 35089.61<br>Expanded: True<br>NODE CLICKED: Test, Index: 1 @ 35090.29<br>Expanded: False<br>NODE CLICKED: Test, Index: 1 @ 35090.95<br>Expanded: True<br>NODE CLICKED: Test, Index: 1 @ 35091.86<br>Expanded: False<br></pre></td></tr></table><br><br>* I notice that when double-clicking the parent node, it expands and shrinks, so each click in the double-click is counted. I will have to come up with a workaround for this.<br><br><br>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 09:48:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62063&amp;title=treeview-nodeclick#62063</guid>
  </item> 
  <item>
   <title><![CDATA[treeview nodeclick : Okay, I update my controls to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62062&amp;title=treeview-nodeclick#62062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 04 January 2011 at 9:38am<br /><br />Okay, I update my controls to 13.4.2 (I was on 13.2.1) and still cannot seem to get the expanded property to work. Here is the change that I made to your code:<DIV>&nbsp;</DIV><DIV><BR>Private Sub mo_NodeClickMod_NodeClicked(Node As XtremeSuiteControls.TreeViewNode)<BR>&nbsp;&nbsp; ' Instead of using the forms TreeView1_NodeClicked event,<BR>&nbsp;&nbsp; ' We use our modified handlers NodeClicked event<BR>&nbsp;&nbsp; ' The modified handlers NodeClick event doesn't fire on startup,<BR>&nbsp;&nbsp; ' and fires even if the already selected node is clicked again.<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; Debug.Print "NODE CLICKED: " &amp; Node.Text &amp; ", Index: " &amp; Node.Index &amp; " @ " &amp; Timer &amp; " " &amp; Node.Expanded<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp; Node.Expanded = Not (Node.Expanded)<BR>&nbsp;&nbsp; <BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>The Node.Expanded property is always shown as false everytime I click a node. Is it possible that the expanded property does not "work" if there are no child nodes?</DIV>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 09:38:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62062&amp;title=treeview-nodeclick#62062</guid>
  </item> 
  <item>
   <title><![CDATA[treeview nodeclick : Sure thing - and a safe and happy...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62041&amp;title=treeview-nodeclick#62041</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 31 December 2010 at 3:09pm<br /><br />Sure thing - and a safe and happy new year to you too!]]>
   </description>
   <pubDate>Fri, 31 Dec 2010 15:09:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62041&amp;title=treeview-nodeclick#62041</guid>
  </item> 
  <item>
   <title><![CDATA[treeview nodeclick : Thanks, let me play with it some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62040&amp;title=treeview-nodeclick#62040</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 31 December 2010 at 3:02pm<br /><br />Thanks, let me play with it some more over the weekend before tying up more of your time. Have a happy and safe New Year!]]>
   </description>
   <pubDate>Fri, 31 Dec 2010 15:02:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62040&amp;title=treeview-nodeclick#62040</guid>
  </item> 
  <item>
   <title><![CDATA[treeview nodeclick : I&amp;#039;ve tried getting the Expanded...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62039&amp;title=treeview-nodeclick#62039</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 31 December 2010 at 1:20pm<br /><br />I've tried getting the Expanded property to report its value incorrectly without luck. Maybe it was fixed?<br><br>If you could modify my sample and provide steps to demonstrate the problem, I will try it here and see if the problem still exists (and if so, see if I can find a workaround).<br><br>]]>
   </description>
   <pubDate>Fri, 31 Dec 2010 13:20:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62039&amp;title=treeview-nodeclick#62039</guid>
  </item> 
  <item>
   <title><![CDATA[treeview nodeclick : jpbro, thanks again for the code......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62032&amp;title=treeview-nodeclick#62032</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 30 December 2010 at 2:14pm<br /><br />jpbro, thanks again for the code... it seems to have resolved the issues that I originally found. Now, it seems that there is one last issue that I can't seem to figure out. When I click a node for the first time i set the nodes expanded property = true. The next time I click the node, the program should see that the node was expanded and perform some different action from the first time the node was clicked (e.g., close a docking pane). For some reason, the expanded property for the node is always equal to false... any ideas on this would be greatly appreciated. ]]>
   </description>
   <pubDate>Thu, 30 Dec 2010 14:14:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62032&amp;title=treeview-nodeclick#62032</guid>
  </item> 
  <item>
   <title><![CDATA[treeview nodeclick : Thanks jpbro... I&amp;#039;ll have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62030&amp;title=treeview-nodeclick#62030</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 17735<br /><strong>Posted:</strong> 30 December 2010 at 10:41am<br /><br />Thanks jpbro... I'll have a look at your code.]]>
   </description>
   <pubDate>Thu, 30 Dec 2010 10:41:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17735&amp;PID=62030&amp;title=treeview-nodeclick#62030</guid>
  </item> 
 </channel>
</rss>