DataTable does not display all columns until first answer from server

DataTable does not display all columns until first answer from server

sidamossidamos Posts: 3Questions: 0Answers: 0
edited October 2011 in Bug reports
HI!

I am using Chrome, jQuery 1.6.4, DataTables 1.8.2 and Scroller nightly.

After initial page load, DataTable shows only 2 cols of my 3 col table, until the first answer from the server arrives. Then it displays all 3 cols.

Definition:
artikelTable = $('#artikelList').dataTable( {
"aaData": [],
"aoColumns": [
{ "sTitle": "id", "sClass": "center" },
{ "sTitle": "Artikel" },
{ "sTitle": "Name" }
],
"sDom": "rtSi",
"bDeferRender": true,
"sScrollY": $('#artikelListHolder').height() - 70 + "px",
"bServerSide": true,
"fnServerData": fetchData,
"sScrollX": "100%"
} );

Thanks!

Thomas

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    Someone else had a similar problem recently and the cause was incorrect HTML formatting - one of his tags was a . Check your html carefully.

    I couldn't find the link to that post, but it was sometime earlier this week.
  • sidamossidamos Posts: 3Questions: 0Answers: 0
    I did further checking and I can see the missing col in the Chrome inspector, it's just not being displayed because there is not enough space. When the data has been fetched, DataTables adds a X-scrollbar and everything is fine.
This discussion has been closed.