Hi all, I was wondering if anyone has done a "collapsible" table column (td) in a table. I am trying to get ideas on how to implement shrinking a column to maybe 5px or so and showing a "mazimize" image in the header when a "minimize" image is clicked in the column header cell and then expanding it again when the "maximize" image is clicked.
Any ideas for the best approach? Each cell has the possibility of having a different css class name though, as the table is built though VB code.
I built a pretty rudimentary mock up with jQuery, but it mostly makes use of the each() function, which is not great practice and would probably get slow with many table rows.
Giving every cell a class name sounds annoyingly verbose; I instead identified the index of the <td> that was selected in the table header, then affected the <td> with a matching index in each <tr>.