Column Auto Width does not work correctly with AJAX Request
Column Auto Width does not work correctly with AJAX Request
duckhunter
Posts: 2Questions: 0Answers: 0
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!
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!
This discussion has been closed.
Replies
Allan