Hmm, if it was me, and take this as only a suggestion, but one i know
will work

I'd put the "description" rows in the footer, and hide them, when you
ask for more info, then either:

1) hide all other <tbody> rows than the one requested, and then show
the respective description row

2) clone and insert the respective row into the table and then ".remove
()" the clone when you're done with it

Unfortunately i don't have any more time to work on an example, but
this code shows both examples

http://paste.pocoo.org/show/110633/




On Apr 1, 10:06 am, "Colin.Houghton" <colin_hough...@hotmail.com>
wrote:
> Reposting since no response on original post.
>
> I have a table where every other row is collapsed (using .toggle).  I
> want to sort on the visible rows, but the sort, of course, sorts the
> hidden rows as well...the result is that the hidden rows may not
> longer be associated with the same "parent" row.
>
> Here is a snippet:
>
> <table id="aSortableTable">
> <thead>
>   <th>tortable column 1</th><th>sortable column 2</th>
> </thead>
>
> <tbody>
> <tr id="toggle1"><td>main row 1<td>main row 1 column 2</td></tr>
> <tr><td colspan = 2>desc. for main row 1</td></tr>
>
> <tr id="toggle2"><td>main row 2<td>main row 2 column 2</td></tr>
> <tr><td colspan = 2>desc. for main row 2</td></tr>
> </tbody>
> </table.
>
>   Is there any way to tell the table sorter how to manage this?  I
> need the table to sort on the main rows, but keep the description
> rows
> "paired" with their respective parent row.
>
> Thanks,
> Colin

Reply via email to