howto combine: hidden column, click event, css class

howto combine: hidden column, click event, css class

bastimmbastimm Posts: 1Questions: 1Answers: 0
edited March 2015 in Free community support

Hi together,

first thanks for this great datatable AddOn!!!

I just made my first steps with a ServerSide Table and it works.
Now i wanted to add a hidden column for the IDs.

$('#articleDataTable').dataTable({
"processing": true,
"serverSide": true,
"ajax": "/index.php?p=ajax&data=artikelJTL",
"columnDefs": [
{
"targets": [ 4 ],
"visible": false,
"searchable": false
}
]
});

this works, but now I want to show wether a row is activated or deactivated and change the status via a click on this row.

So i want to get a click event wich redraws the table and also submit the clicked element/id and status, so i can change the selection. I dont know how to do :s

Other point is:
can i add a second hidden column for show a row as selected and deselect and change the CSS Class for this row?

THANKS a Lot!!!

This discussion has been closed.