How to get the contents of a hidden column?

How to get the contents of a hidden column?

ucip3ucip3 Posts: 4Questions: 2Answers: 0

I have made a basic table responsive, in mobile size, there is a column that is then necessary to hide, but I need to retrieve the HTML content of the column for operations dynamically.

Is there any chance of recovering the contents of the hidden column?

thanks

Answers

  • stuartsjb-icrstuartsjb-icr Posts: 59Questions: 12Answers: 0
    edited June 2015

    If your hidden cell index was 3, for example:

    var hiddenCellData = YourTable.cell(this, 3).data();
    

    This works for me when using

                "columnDefs": [
                    {
                        "targets": [3],
                        "visible": false
                    }
                ]
    

    in my table initialisation.

This discussion has been closed.