Print Page | Close Window

Issue creating child nodes in .net

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=11309
Printed Date: 05 October 2024 at 8:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Issue creating child nodes in .net
Posted By: apoc68
Subject: Issue creating child nodes in .net
Date Posted: 04 July 2008 at 2:08pm
I am using the xtremesuite pro ver 12 and am having difficulty using the treeview control in a .net winform.  I don't see any treeview samples for vb.net anywhere in the samples directory.

The problem I am having is creating children nodes in the treeview.  I have tried many different methods and I can only get the nodes to appear in the root level as opposed to the child level.

I have tried this
Dim o As New XtremeSuiteControls.TreeViewRelationship
o = TreeViewRelationship.xtpTreeViewChild
oTreeView.Nodes.Add(oNode, o, , "__DummyNode__")

I have tried
oTreeView.Nodes.Add(oNode, TreeViewRelationship.xtpTreeViewChild, , "__DummyNode__")

and also many other ways.  If someone could help me out possibly with a vb.net sample code app that uses a treeview it would be greatly appreciated.





Replies:
Posted By: Baldur
Date Posted: 15 July 2008 at 9:26am
If you want to add childs, you must give the index-property for the relationship:
 
oTreeView.Nodes.Add(oNode.Index, TreeViewRelationship.xtpTreeViewChild, , "__DummyNode__")




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