Prevent server side datatable from creating chosen rows
Prevent server side datatable from creating chosen rows
Raley
Posts: 7Questions: 2Answers: 0
Hello. What I'm trying to do is to prevent my server side datatable from creating/drawing chosen row, by some condition.
Here is a piece of code to illustrate you my needs
"columnDefs": [{
"targets": [-1],
"createdCell": function (td, cellData, rowData, row, col) {
if(somecondition) delete_this_row/prevent_from_being_created_at_all
}
}
Is there any way to make it work as I want to?
This discussion has been closed.
Answers
Got it worked by https://datatables.net/reference/api/row().remove()