Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Treeview question

$
0
0

I have a treeview on a web page.  I have a flat file that contains the heirarchy of the treeview.  Here is an example of the flat file:

Element       Parent

1                 blank

A                 1

B                 A

C                 B

D                B

2                1

F                2

G               2

H               F

I                G

So I want my treeview to look like this:

1

  +A

        +B

            C

            D

  +2

        +F

             H

         +G

             I 

So "1" is the root and all parents will fall under this root.  I then want all nodes to be built dynamically as I read thru this flat file.  But I'm not sure how to do this or if it's even possible.  Can anyone help?


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>