Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recursive Datalist (categories display).

Status
Not open for further replies.

Caradog

Programmer
Jun 28, 2000
73
GB
Right, this one's got one confused as to the best way of find a solution.

I have a table I can query which has an unlimited number of categories for a shop, so cat 1, can have a sub cat 1,1 in turnthat can can have 1,1,1 and so on.

I am able quite easilly to recursively loop through this table displaying all the categories...however I want to use some kind of datagrid/datalist to display these categories so that I can add an on click event to each category to fire to hide one panel and show another without leveing the page i am on and all the state that goes with it.

I also want to repopulate this list after the onclick event which is why I thought a datalist/grid would be better becuase I could just refresh it with a new databind.

Maybe the IE Controls built in treeview is a better solution???

Simply put, all I want to do is:

1. Create a tree like structure.
2. Each category name is a link which when onlicked keeps the user on the same page and hides and opens other panels.
3. After the user has finished, the hidden list of categories is refreshed on the page and then the panel is reshown...

HHmmm...and suggestions???

- Jay
code@jay-hayman.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top