I have a question about a feature I'm implementing using a Perspective Tree component. Here is a picture of the problem:
I would like it to show up in this way:
(obviously extrapolated for any number of nodes in the tree).
Here are the paths for each node:
- root:
'123'
- TH123:
'123$TH123'
- RT124:
'123$234'
- RT345:
'123$234$345'
The problem: Notice that RT345
's path comes from 234
, but it shows up in the Tree under TH123
... why?????
I don't want the RT nodes to attach to the TH nodes BUT at the same time, I want the TH nodes to display first (meaning right under the parent nodes).
All of the IDs are coming from two different tables in the database (TH and RT).The reason why I prepended the TH
to the TH ID in the database is because there will be that one time where the TH.ID = RT.ID
that will wreck me when I have to troubleshoot this in a year or two.
TIA