Hello All,

I have a bunch of list boxes. Clicking on those I add new values to
the same listboxes. I want to create a breadcrumb for each link that
is clicked and on the click of the link I would like to populate the
listbox with the ID that was clicked on.

Now the data I use is fetched only one on Application Startup, is in a
tree (similar to binary tree but not exactly a binary tree).

So for example if my root is 1 and the children to that are 2, 3, 4

then clicking on 2 will create the breadcrumb to be 1 --> 2 and if 2
has any children it will be added to the list.

Now if the user wants to traverse back , and the final breadcrumb is
1--> 2 --> 5 --> 6 and clicks on 2 then all the children of 2 should
be shown in the listbox (which I can manage). The trouble I have is
creating the breadcrumb. I am not sure how to deal with this issue.
Right now I have created a tags as and when I add elements to the
breadcrumb with appropriate ID for each element. So I know what
element to look for in the tree but as the tree is constructed with
recursion I am not sure again about traversing the tree and getting
hold of all of the nodes on the way till the node which has been
clicked.

Anyone have any ideas on dealing with the issue?

Thanks,

SM

Reply via email to