alfajango / jquery-dynatable

A more-fun, semantic, alternative to datatables
http://www.dynatable.com
Other
2.77k stars 361 forks source link

Grouping rows. #153

Open webezine opened 9 years ago

webezine commented 9 years ago

Hi ,I was hoping you could help - I'm really stuck.

I have a table which has hidden rows which contain additional information about the row above it. I had a function where you click on the row above and it will show the row below but since using dynatable it seems to remove the calses which are used to hide and show the rows . All rows are being shown regardless now.

Is there a way to group the rows? Do you have any thoughts on how I can show additional info on a tr click?

Thanks in advance.

JangoSteve commented 9 years ago

This sounds like it may be the same issue as #19. There's not yet an exact way to do this, though now coming back to it, I'm thinking this could possibly be done by initializing dynatable with the JSON data you want, and creating a custom rowWriter function, which writes two rows per JSON record.