Semi-dynamic data table + complex headers
Semi-dynamic data table + complex headers
Hi,
I have a case where part of my table is dynamic, i.e. it can have one or more entries. Each entry is actually made of two columns:
Something like:
| | Result 1 | Result 2 | ….
Run|run - detail columns, same across all| name|percent| name|percent|
| A | 5% | B | 47% |
I.e. there can be any number of results (but at least one).
Do I have to build the whole table on the server side, or can I do it in the HTML page ( + jscript of course)?
The json for the result comes in as { fixed data for a row, result:{Result 1: {name:A, percent:0.05}, Result 2: { name:B, percent: 0.47} } } but I have some control over it.
Thanks,
V.
Answers
Hi @kauri ,
Kevin's example in this thread should get you going,
Cheers,
Colin