Column Auto Width does not work correctly with AJAX Request

Column Auto Width does not work correctly with AJAX Request

duckhunterduckhunter Posts: 2Questions: 0Answers: 0
edited August 2012 in DataTables 1.9
Hi all,

I have a little problem with Datatables. When I try to get large data with an AJAX Request, the columns are wider than the normal table. Here is an example Screenshot:
http://666kb.com/i/c6popgp1uzdjlsv6z.gif

As you can see the columns doesn't fit into the whole table. When I'm doing this without AJAX, the columns fit without any problems.

Here is the code I'm using:

$("#tableid").dataTable({
oLanguage: {
sUrl: "js/lib/dataTables/datatables.german.txt"
},
sAjaxSource: "getdata.php",
sPaginationType: "full_numbers",
bJQueryUI: true,
bServerSide: true,
aaSorting: [[ 2, "desc" ]],
aoColumns: [
null,
null,
null,
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": false }
]
});

Can you please help me?

Thanks in advance,
duckhunter

P.S.: Thanks for the great work you're doing with datatables!

Replies

  • duckhunterduckhunter Posts: 2Questions: 0Answers: 0
    *push*
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Can you link us to a page that shows the problem please. The image shows the problem, but doesn't really help in being able to identify what the issue is.

    Allan
This discussion has been closed.