1You need to include responsive css and js
2
3https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.css
4https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.js
5
6<table class="table table-striped table-bordered dataTable display" cellspacing="0" width="100%">
7</table>
8
9This is working for me. One thing always keep in mind that you have to include
10jquery and datatable css and js.
11
12$('.dataTable').dataTable({
13 ....
14 "responsive": true,
15 ....
16});