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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Collapsable table question

Status
Not open for further replies.

jmswe

Programmer
Feb 14, 2002
31
GB

I know that this is not a doable thing in asp but i would like someone to suggest an appropriate teqnuiqe.

I have: A dynamicall generated hitlist. (a long one) where mother entities have a number of child entities.

What i want to do: I want every mother entity to be expandable so that child entities only show if you click expand.

Treeview is not an option since each entity contain multiple collumns of information. So it has to be in a table.

I want it to be expandable without a reload so it has to be dynamic.

Any ideas or sitetips where there could be templates for such things?

/J
 
Load each table into a <div> with an initial style of invisible.
When use clicks on parent name, set appropriate div style to visible, and the rest to invisible using javascript function.
 
Hi. thanks for your answer!

But would that make all tables move down and up automaticly on expansion/detraction?
 
everything below the div being made visible would move down. It would not obscure the remainder.
 
Ok.. will give it a try.

Thanks for fast response!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top