show comparison in another columns
show comparison in another columns
wintermelon_lover
Posts: 6Questions: 5Answers: 0
Link to test case: http://live.datatables.net/hicegewa/1/edit
Description of problem: I currently have two tables and each table was like:
table1:
table2:
Can I merge them to a table like:
by grouping them with index and compute weight loss with Datatables?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The
diff
column would requirerowspan
to be used which isn't supported, by Datatables, in thetbody
. One option might be to use the RowGroup extension. You can group by the index column then output the difference in the row added by RowGroup. For example:http://live.datatables.net/hicegewa/2/edit
There are some comments in the example. See this example for
rowGroup.endRender
for more details.Kevin