Using columnDefs.Render to add checkbox to a column not working as hoped
Using columnDefs.Render to add checkbox to a column not working as hoped
Hi, I'm fairly new to using datatables, but my problem at the moment is that I need to have a column with checkboxes in each row, as well as the header (used as a select all checkbox). I've been working off this example (http://www.gyrocode.com/articles/jquery-datatables-row-selection-using-checkboxes-and-select-extension/) which has been really helpful however I can't get the checkboxes to appear. My code is basically the same as the example, except i'm getting my userData from a json string.
When I inspect the HTML the checkbox is there, but it's way off the page even though I specify columnDefs.targets = 0; to point to my first column.
I've been stuck on this since yesterday afternoon and any help would be greatly appreciated.
Thanks