How to use hidden columns with datatable, without removing/deleting columns.

How to use hidden columns with datatable, without removing/deleting columns.

Gulzar AliGulzar Ali Posts: 2Questions: 2Answers: 0

Hi all I am working on to save some values as hidden in the datatable. when end user calls certain event, I want to get these values to perform some functionality.But when I use

"columnDefs":[
            {
                          "targets": [ 0 ],
                          "Visible": false,
                          "searchable": false
                         }
                     ]

it remove/delete columns completely from datatable so I cant access this column value.
How can I create hidden columns to contain some values that I can access as per desire.

Answers

  • kthorngrenkthorngren Posts: 21,305Questions: 26Answers: 4,947

    You should be able to access the data using Datatables API's. How are you trying to get the data?

    You have a typo in "Visible": false,. The v in visible should be lower case.

    Kevin

This discussion has been closed.