How to use a column as a unique row?
How to use a column as a unique row?
lmoraes
Posts: 3Questions: 1Answers: 0
in DataTables
Hi guys from above image.
How can I use the column TAX
as a first row?
The column name will be the description and value still as value.
Thanks for your help
This question has an accepted answers - jump to answer
Answers
I'm not clear what you mean by using a column as a first row? Do you mean something like RowGroup, as shown in this example? It's using a column's value as a header for the group?
Colin
Hi Colin, thanks for your reply. What I mean is to use the Column
TAX
as a row.for Example:I hope it makes more sense to you.
Thanks for your help.
Datatables doesn't have anything builtin to allow for changing one column into a row of data. You can do this in your server script before the data is sent to Datatables. Or you can do this in the client. If you are using
ajax
to load the data you can useajax.dataSrc
to get theTax
column and convert it to a row before applying the data to the Datatable.Kevin
Hey Kevin, it did work. Thank you very much.