Print Page | Close Window

Treeview Expanded Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=18808
Printed Date: 21 November 2024 at 3:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Treeview Expanded Problem
Posted By: ahmadgames
Subject: Treeview Expanded Problem
Date Posted: 10 August 2011 at 6:40am
Hi,

There is a problem in the Expanded property in CJ Treeview, where if you add a node and then set the expanded property to true, while nothing inside it, it will not be expanded once a node added inside it... But in MS Treeview, it will be expanded just after a node added to the main node..

This is very important when you create a huge tree dynamically like in our case, we make a small function to add a TreeNode, and send the (Tree, ID, Name,..., Expanded), and we use this function to build the entire tree, in this case, we want the main node for example to be expandable and some are not, so we used to send (True) only while building the main node, and it will be expanded when anything added to it...

To clarify the case, you can download the sample from this link:
www.hybrid-solutions.com/tvwexpand.zip

This sample will fill both trees (MS and CJ) using the same function, the MS Tree will be expanded and the CJ Will not.

Hope this will be fixed ASAP since we are in the BETA version now :)

Regards.




-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions



Replies:
Posted By: Oleg
Date Posted: 11 August 2011 at 8:29am
Thanks for description and sample. Its fixed for next update.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ahmadgames
Date Posted: 11 August 2011 at 8:35am
Great :) thanks alot for your swift response.

Regards.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.3.1
Platform: Windows 8.1 (64bit)
Language: Visual Basic 6.0
--------------------------
Ahmad Majid
Development Manager
Hybrid Solutions



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net