How to use hidden columns with datatable, without removing/deleting columns.
How to use hidden columns with datatable, without removing/deleting columns.
Gulzar 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.
This discussion has been closed.
Answers
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 invisible
should be lower case.Kevin