multiple columns in thead and tfoot but a free form (one cell) tbody
multiple columns in thead and tfoot but a free form (one cell) tbody
I have a need to display a record using a free form template (meaning not columnar). The data source is server side, so I have control in formatting the data field, but I wasn't sure how to set up the dataTable call.
I need something like this:
[thead 1][thead 2][thead 3]
[
Other text [column 1]
[column 2] and more text
[column 3] and still more.
]
[tfoot 1][tfoot 2][tfoot 3]
where each "column" i denoted in []'s. I cant just style the td's, because the actual data row is really a html fragment I need to put into a single cell. Suggestions?
Oh, also, is there a way to have the search fields appear at the top of the table, essentially putting tfoot above thead?
I need something like this:
[thead 1][thead 2][thead 3]
[
Other text [column 1]
[column 2] and more text
[column 3] and still more.
]
[tfoot 1][tfoot 2][tfoot 3]
where each "column" i denoted in []'s. I cant just style the td's, because the actual data row is really a html fragment I need to put into a single cell. Suggestions?
Oh, also, is there a way to have the search fields appear at the top of the table, essentially putting tfoot above thead?
This discussion has been closed.
Replies
WRT the search field - I presume your are referring to the demo of the individual column filtering. In which case, if you have a look at the code, you'll see that it's just a bunch of tags in the tfoot element. You can move them to where ever you want.
Allan
labelfield1labelfield2labelfield3labelfield4
filterfield1filterfield2filterfield3filterfield4
field1
field2
field3
field4
Allan