Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hello.
I'm trying to use the Tree Grid, within the Grid Widget.
I have created two Infotables. One with Parent Data and another for Child Data.
Parent Data Output:
UID (Long) | Name (String) | hasChildren (Boolean) |
1 | Parent 1 | true |
2 | Parent 2 | true |
3 | Parent 3 | false |
Child Data Output:
UID (Long) | Name (String) | ParentUID (Long) |
4 | Parent 1 - Child 1 | 1 |
5 | Parent 1 - Child 2 | 1 |
6 | Parent 2 - Child 1 | 2 |
Bindings:
Data: -> Parent Data Table
ChildData: -> Child Data Table
IDFieldName: UID
ParentIDFieldName: ParentUID
HasChildrenFieldName: hasChildren
Result:
With the following approach mentioned above, I have 3 rows as output.
Row 1 and 2 can be expanded to show the children, but not row 3 as expected.
However, if I expand row 1, I have all 3 Child Data Rows in there.
If I expand row 2, I also have all 3 Child Data Rows in there.
I don't know what to change anymore.
Can someone help?
Best Regards.
Solved! Go to Solution.
This was solved by using one Infotable with Parent and Child information.
This was solved by using one Infotable with Parent and Child information.