I need to set some custom data to a cell and saw this solution with the use of setCellMeta
.
My tables usually have column sorting and moving columns enabled. The custom cell data did remain intact when sorting however it seems to have been lost when I re-order columns.
Please take a look at this fiddle.
Edit
I was just checking every other cell in the table and it seems the custom data wasn’t really “lost” per se, more like misplaced… after moving the column a few steps forward, the custom data was located on the correct row but on the wrong (previous) cell.