View previous topic :: View next topic |
Author |
Message |
anwarbv
Joined: 27 Nov 2006 Posts: 3
|
Posted: Mon Nov 27, 2006 4:16 am Post subject: relation to a table |
|
|
hello i have a table with the following structure
id Code Name Type
1 100 Parent 0
2 200 Parent A 1
3 300 Parent B 1
4 201 Child 2
5 301 Child 3
so the data is in this hierarchy
Parent
+----------Parent A
+----------------Child-201
+----------Parent B
+----------------Child-301
i would like the same to be represented on the virtual tree can you show me how.
also how do i activate to show the expanded icons
regards
Anwar |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Nov 27, 2006 8:37 am Post subject: |
|
|
If the relation between the parent and child is not implied only in the item Code then you would need to handle the GetChildren event to return the child rows for a given parent row (by filtering the table rows based on the code).
Quote: | also how do i activate to show the expanded icons |
What exactly do you mean? _________________ Infralution Support |
|
Back to top |
|
|
anwarbv
Joined: 27 Nov 2006 Posts: 3
|
Posted: Wed Nov 29, 2006 3:28 am Post subject: GetChildren |
|
|
Hello,
As you suggested i used the getchildren event of the vitrualtree , i already load this tree with level 1 data during my form load event, but after i added the getchildren, it does not load the data.
can you please tell me how this is done. for the type of display i want i have shown the data structure above.
regards
Anwar |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Nov 29, 2006 4:02 am Post subject: |
|
|
Could you post the code for your GetChildren event. It might also help if you could email a complete zipped project to support@infralution.com _________________ Infralution Support |
|
Back to top |
|
|
|