Last post Jan 28, 2006 08:03 PM by netguy
Jan 26, 2006 12:38 PM|codegalaxy|LINK
this is a DNN module that the user want no post back so everything is written out at load to the client and controlled via JS - that part is easy enough but I am having a little prblem figuring out how to nest Panels dynamically
heres what I have - a database table
in the table there is
ID CategoryName ParentID
1 Test1 0
2 Test2 0
3 Test2.1 2
I need the display to go through and create nested panels like so
Panel for Test1
Panel for Test2
Panels for Test 2.1 (inside Panel for Test2)
stuck on writting the function(s) to do this (i do understand recursive functions though)
Anybody got a bright idea
Jan 28, 2006 08:03 PM|netguy|LINK
I'll take a stab at it.
Drop a datalist and create an ItemTemplate.
On Page_Load bind the data to the datalist.
Now, in the DataList.ItemDataBound Event create a Panel and controls you want to add to it for each item.
That you should work for ya.