How to use a column as a unique row?

How to use a column as a unique row?

lmoraeslmoraes Posts: 3Questions: 1Answers: 0


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

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    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

  • lmoraeslmoraes Posts: 3Questions: 1Answers: 0

    Hi Colin, thanks for your reply. What I mean is to use the Column TAX as a row.for Example:

    Description Fee 1 Fee 2 Quantity
    TAX 666
    VR1 667 667 1
    VR2 668 668 1

    I hope it makes more sense to you.
    Thanks for your help.

  • kthorngrenkthorngren Posts: 21,261Questions: 26Answers: 4,934
    Answer ✓

    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 use ajax.dataSrc to get the Tax column and convert it to a row before applying the data to the Datatable.

    Kevin

  • lmoraeslmoraes Posts: 3Questions: 1Answers: 0

    Hey Kevin, it did work. Thank you very much.

Sign In or Register to comment.