I hacked together something that adds a column of checkboxes. You can select a row by clicking the checkbox... or anywhere else on the row for that matter. The checkbox may seem superfluous, but it's there as a visual reference. I added a 'select all' button at the top of that column.
The code is probably horrible, given that I'm new to web dev, don't know JavaScript, the DOM, jQuery, *and* dataTables, but it's working if you want to take a look. I uploaded it just for you: :)
> Is this part of dataTables or something you created yourself?
Something I created myself, added to the top of jquery.dataTables.js. The code was iteratively hacked into working then never revisited, so I'm sure it's terrible, but there's no much of it. Might give you a head start on implementing something like this for yourself. I updated to my latest version for you.
Replies
http://datatables.net/examples/server_side/select_rows.html (for server side)
or
http://datatables.net/examples/api/select_row.html
The code is probably horrible, given that I'm new to web dev, don't know JavaScript, the DOM, jQuery, *and* dataTables, but it's working if you want to take a look. I uploaded it just for you: :)
http://tetzfiles.com/temp/datatables/
how did you do this?
What is selectableDataTable?
$('#InventoryItems').selectableDataTable(initvalues)
Is this part of dataTables or something you created yourself?
Something I created myself, added to the top of jquery.dataTables.js. The code was iteratively hacked into working then never revisited, so I'm sure it's terrible, but there's no much of it. Might give you a head start on implementing something like this for yourself. I updated to my latest version for you.