Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 23rd, 2006, 08:08 AM
Registered User
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Infragistics UltraWinTree

Hi!! I have a table that is related to itself by the field 'parentId' and the project is working under Hibernate. The table name is 'JobCode' and the jobs that have parentId = NULL are the parents that I want to display in level 1 nodes and for each parent I have some childs that I want to display as level 2 nodes. Does anybody know how to do this? Because I could display all parent nodes in the tree but I couldn't assign them its childs... Thx!
Old August 23rd, 2006, 12:11 PM
Friend of Wrox
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

There is SQL to do this very thing. (I forget the key word(s), but it is there.)
Old August 23rd, 2006, 12:18 PM
Registered User
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

The problem is not how to get the the data. The problem is how to display it in an UltraWinTree of Infragistics. I want to display de nodes with some columns. It would be something like this:

I have the class 'Tarea' that has the following attributes:
    Codigo as String
    Descripcion as String
    CodigoTareaPadre as Tarea
    TareasHijas as List(Of Tarea)
    TareasPrevias as List(Of TareasPrecedentes)

The class 'TareasPrecedentes' has two members:
    TareaPrevia as Tarea
    TareaPosterior as Tarea

I want to display in an UltraWinTree something like the following example:

Codigo Descripcion CodigoTareaPadre
Tarea1 This is Tarea1 NULL
Tarea2 This is Tarea2 NULL
SubTarea1 This is SubTarea1 Tarea1
SubTarea2 This is SubTarea2 Tarea1
SubTaera3 This is SubTarea3 Tarea2

I want it to end up like this (with the OutlookExpress ViewStyle):

|Codigo | Descripcion |
+ Tarea1 This is Tarea1
    SubTarea1 This is SubTarea1
    SubTarea2 This is SubTarea2

+ Tarea2 This is Tarea2
    SubTarea3 This is SubTarea3

When I assign the datasource to the UltraWinTree, it displays the parent
nodes and for each one, two collections (one of TareasHijas and the other of
TareasPrevias). I just want to display the collection of TareasHijas with
the paramateres shown before.

Old September 5th, 2006, 07:35 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

This sounds more like a control related problem and, I don't think, any of us will be much help. why not contact Infragistics tech support? I am sure they will be able to help you.

"The one language all programmers understand is profanity."

Similar Threads
Thread Thread Starter Forum Replies Last Post
Infragistics Controls sumith ASP.NET 2.0 Basics 1 October 3rd, 2007 07:57 AM
Infragistics web grid problem sandeep General .NET 1 September 8th, 2006 07:38 AM
doubt in Infragistics.Win.UltraWinTree dhol General .NET 0 January 12th, 2006 01:09 AM
Plotting graph using Infragistics NetAdvantage 5 dotnetprogrammer VS.NET 2002/2003 0 June 1st, 2005 07:11 AM
Infragistics win grid k_kosaraju General .NET 1 October 8th, 2004 01:29 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.