[jQuery] tablesorter 2.0 with subtables
Hi,
right now I'm trying to figure out what's best practice for a simple
table
grid with detail view on click. I know there are grid plugins
available but
for my first test I want to create a simple one by myself and add some
other plugins to enhance it. One of them is tablesorter 2.0:
http://tablesorter.com/docs/
My table with nested table looks like this:
<table>
<tr>
<th>first col</th><th>sec. col</th><th>third col</th>
</tr>
<tr>
<td>
<table>
<tr>
<td>first col content</td><td>sec. col content</td><td>third
col content</td>
</tr>
<tr>
<td colspan=3><div style=display:none>hidden content</div></
td>
</tr>
</table>
</td>
</tr>
...
</table>
The problem is that tablesorter is just sorting the first col and not
the others.
Probably it has to do with the nested table. Does anybody know if the
sorting
would also work with the other cols if I would make some adjustments
or
is it better to create a "clean" table with tds and add detail view
via DOM mani-
pulation? I'm thankful for any useful hint.
T.C.