Rotating/Transposing Table

Rotating/Transposing Table

Gautam_SamalGautam_Samal Posts: 2Questions: 1Answers: 0
edited April 2017 in Free community support

I need to implement the transpose option in data table. I think there isn't any official datatable plugin that can help me out. I found some discussions over here https://datatables.net/forums/discussion/5992/rotate-table

So, I am thinking of implementing this. But the only problem is that I couldn't find the specified plugin over there, also the link is expired. Any guidance in this case would help a lot.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 57,229Questions: 1Answers: 9,111 Site admin
    Answer ✓

    You are correct - there is no plug-in for transposition in DataTables. The thread you linked to is really old and I suspect it wouldn't work with current versions of DataTables even if it was still present.

    It might be possible using CSS, but it isn't something I've tried out myself.

    Allan

  • Gautam_SamalGautam_Samal Posts: 2Questions: 1Answers: 0

    @allan , Thanks for the guidance. I couldn't make use of the css though. Instead, I tried implementing concept from the original thread (added a pivot table and built tr accordingly) on drawCallback and it worked fine.

  • IntactoIntacto Posts: 4Questions: 0Answers: 0

    CSS transpose method (apply from second line until end of the table):
    <tr style="float:left;">
    but I have used the code below for show 3 rows as table with 3 columns:
    <tr style="float:left; width:33.33%;">

This discussion has been closed.