Rotating/Transposing Table
Rotating/Transposing Table
Gautam_Samal
Posts: 2Questions: 1Answers: 0
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
This discussion has been closed.
Answers
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
@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.
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%;">