Skip to content
Advertisement

Datatables Editor show/hide a checkbox of a list of checkbox in edit row when another column is true/false

I’m new in Datatables and Editor.

I need help to hide or show some elements of a list of checkbox depends if the boolean “deleted” is true or false. the checkbox are displayed when you edit the row, but i need to display the name of the persons that have his deleted column set to false.

I’ve two tables, plus another one with the reference of the first with the second. The first table is “person”, that have FirstName, LastName, age and ID autoincrement and the deleted flag. The second table is “agency”, and contain simply the name, ID autoincrement and the deleted flag.

This is my php code:

JavaScript

And here my index.js file:

JavaScript

I know when hide the column of deleted column, but i haven’t do that to see if it works.

Thanks in advance, BledWolf

Advertisement

Answer

I’ve find the solution at the public documentation of DataTables and Editor: enter link description here at the point 4 of “SearchPaneOptions class”

I’ve change this:

JavaScript

With this:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement