How to insert record from Datatables checkbox
How to insert record from Datatables checkbox
alci02
Posts: 1Questions: 1Answers: 0
I need help to insert datatables checkbox to a table, I dont know how to do it,
Answers
If you are referring to the Select extension checkbox then see this example. IF you want just a checkbox then use
columns.render
to render the checkbox HTML into the cell. See this example for HTMl rendering samples. This editor example shows another option for checkboxes. If you aren't using Editor then remove that part of the config.Kevin
You could consider nested editing like this. That uses a DataTable rather than a checkbox to add the option, but I think it would be a good idea for me to add a nested editing option to the checkbox input type - I was going to do that for a new field type - I it would make sense to expand it here as well.
Allan