btw, one thing about tablesorter:  it's very complicated code, and
making hacks to it to support something like you ask for would be a
pretty heavy duty task....  not that i am a super expert at it, but
i've found that keeping rows that you don't want sorted out of the
<tbody> is the best way to best utilize this excellent plugin



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