Headers as columns

Headers as columns

shivaselvaduraishivaselvadurai Posts: 7Questions: 3Answers: 0

I have a data table as follows, which retrieves data from server side via ajax.

H1 H2 H3

R1 R1 R1
R2 R2 R2
R3 R3 R3

I want this table to be changed to following format

H1 | R1 R2 R3
H2 | R1 R2 R3
H3 | R1 R2 R3

Is there a easier way to do this.

Answers

  • allanallan Posts: 63,464Questions: 1Answers: 10,466 Site admin

    What you are looking for is a pivot table. That is not a feature that DataTables currently supports, which you'll see if you search for forum for it. Sorry.

    Allan

  • shivaselvaduraishivaselvadurai Posts: 7Questions: 3Answers: 0

    Thanks Allan

This discussion has been closed.