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

Set columns width

$
0
0

Hello.

I'm using DataTables 1.10.16 with Bootstrap 3 integration.

I initialize datables as follow:

$('#dataTable').DataTable({
"paging": false,
"searching": true,
"dom": "t",
"autoWidth": false,
"language": {
"url": "/js/dataTables.Russian.json"
},
// Тюнинг размеров колонок
"columnDefs": [
{ "width": "150px", "targets": 1}
]
});

But in result i've got rendered column width 173 px (by browser devtools measurement). In TH style there is width:150px. What i should to do, to have 150px width rendered?

Thannks.


Viewing all articles
Browse latest Browse all 81909

Trending Articles



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