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

TableTools example - multi-row select is not working

$
0
0
I have followed the example from this link: http://datatables.net/release-datatables/extras/TableTools/select_multi.html

This is my init code:
$(document).ready( function () {
$('#companies').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "multi",
"aButtons": [ "select_all", "select_none" ]
}
} );

This is my body code:
<body id="dt_example">
<div id="container">

<div id="demo_jui">
<table id="companies" class="display">
<thead>
<tr>
<th>Company name</th>
<th>Address</th>
<th>Town</th>
</tr>
</thead>
<tbody>
<tr>
<td>ABC</td>
<td>ABC Street</td>
<td>Town1</td>
</tr>
<tr>
<td>Dell</td>
<td>Car street</td>
<td>Town2</td>
</tr>

</tbody>
</table>
</div>

</div>
</body>

I don't know, what is wrong here. I'm not getting the 'select all', 'deselect all' buttons and single row select also. I'm new to datatables. Kindly help me.

Viewing all articles
Browse latest Browse all 82146

Trending Articles



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