Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82801

Checkbox to Select Row in Editor

$
0
0

I am trying to display a checkbox in the first table column. This is not part of the database. The only purpose is to select one row, so that enables the TableTool Edit/Delete buttons.
Per https://editor.datatables.net/examples/inline-editing/simple.html I did not put anything for the Editor.fields for the checkbox column. What then displays is nothing in that column. What do I really need for the DataTable.columns and the Editor.Fields options for that checkbox. Below is what I have so far:


"tableTools": { "sRowSelect": "single", "sRowSelector": "td:first-child", "aButtons": [ { "sExtends": "editor_create", "editor": editor }, { "sExtends": "editor_edit", "editor": editor }, { "sExtends": "editor_remove", "editor": editor } ] } ... $('#TSSRAvail').DataTable( { ... { "data": null, "type": "checkbox", "defaultContent": "", "orderable": false, },

Viewing all articles
Browse latest Browse all 82801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>