Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Column width resizing on load

$
0
0

Hi,

I had to add an additional column to my table and now it stretches well beyond 100% of my window. I'm trying to understand why on initial load it's respecting my code:

 var table = $('#test').DataTable({
            ajax: 'php/table.su.php',
            columns: [{
                    "data": "name",
                    "width": "50px"
                },

but immediately after it resizes to well beyond the window. I've tried everything - columnDefs, column width, manual css classes. It seems to be injecting inline style for the width after everything else. Is there a way to force a column to stay small?

I've looked at the responsive route and I've been able to set the ones I want in the detail view but it seems to force at least 4 down there when I only want 2 down there.

Any ideas?


Viewing all articles
Browse latest Browse all 2364

Trending Articles