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

Scroller plugin and CSS issue

$
0
0
Hi !

I face a strange issue with the Scroller plugin.

The HTML markup :

<table style="display:none;" id="myTableId">
   <thead>
      <tr>
         <th>Id</th>
         <th>FirstName</th>
         <th>LastName</th>
         <th>City</th>
         <th>Mail</th>
      </tr>
   </thead>
   <tbody>
      ...
   </tbody>
</table>

The Javascript code looks like this :

var oTable_myTableId;
var oTable_myTableId_params = {
   "sDom":"lfrtipS",
   "sScrollY":"300px",
   "aoColumns":[
      {
         "bSortable":true
      },
      {
         "bSortable":true
      },
      {
         "bSortable":true
      },
      {
         "bSortable":true
      },
      {
         "bSortable":true
      }
   ]
};
$(document).ready(function(){
   oTable_myTableId = $('#myTableId').dataTable(oTable_myTableId_params);
   $('#myTableId').show();
});

The jQuery show() call works well in all other examples but not with the Scroller plugin : the table still has the "display:none;" CSS.

Any idea ?

Debug data : http://debug.datatables.net/uniyud
And for once, a demo : http://demo.dev.datatables4j.cloudbees.net/plugins/scroller :-)

Thanks !

Viewing all articles
Browse latest Browse all 82455

Trending Articles



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