[Echo-list] Expandable Table (client side)
Brought to you by:
tliebeck
From: Mark S. <msa...@be...> - 2003-12-10 04:11:19
|
I need to build a table that allows you to expand/contract rows like in a Tree, and do so on the client side (ie. javascript). For example, one row could be a sum of other rows, and the table could be displayed like: Row1 123456 +Row2 (total) 999999 Row3 347913 When the + next to Row2 is clicked, you get this: Row1 123456 - Row2 (total) 999999 Row2a 111111 Row2b 888888 Row3 347913 I don't think there are any components in echo or echopoint that can do this, either from the client or server side. I thought about merging a tree and a table, but have not taken any overt steps so far. Any ideas on how this could be done with a minimum of reinventing the wheel would be great. On the server side, it seems like you could hide rows until they are needed. You would listen for the + being clicked then fire a change to the table structure, adding in the rows that were "hidden" before. (Any vice versa when - is clicked.) However, that type of server side interaction is likely going to be way too slow. |