Results 1 to 3 of 3

Thread: Collapsible column (tds) in table

  1. #1
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 03
    Posts
    681

    Collapsible column (tds) in table

    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.

  2. #2
    Frenzied Member
    Join Date
    Apr 09
    Location
    CA, USA
    Posts
    1,500

    Re: Collapsible column (tds) in table

    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>.

    *shrug* Just some thoughts.

  3. #3
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 03
    Posts
    681

    Re: Collapsible column (tds) in table

    Just what I was looking for - thank you very much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •