DataTables works only after a click?
DataTables works only after a click?
![NM78](https://secure.gravatar.com/avatar/523033212f238d41413cd9e1879d6e77/?default=https%3A%2F%2Fvanillicon.com%2F523033212f238d41413cd9e1879d6e77_200.png&rating=g&size=120)
Hi, im trying to get DataTables running in my script. It will work only after a click into the table. Only after that, i can see the pagination and sortable icons. StateSave wont work too.
Here is the code:
[code]
$('.sortme').dataTable({
'columnDefs': [
{
'targets': [9],
'sortable': false
}
],
'stateSave': true,
'pagingType': 'full_numbers',
'lengthMenu': [[10, 25, 50, 100, -1], [10, 25, 50, 100, 'Alle']]
});
[/code]
Do u know whats wrong?
Here is the code:
[code]
$('.sortme').dataTable({
'columnDefs': [
{
'targets': [9],
'sortable': false
}
],
'stateSave': true,
'pagingType': 'full_numbers',
'lengthMenu': [[10, 25, 50, 100, -1], [10, 25, 50, 100, 'Alle']]
});
[/code]
Do u know whats wrong?
This discussion has been closed.
Replies
I had a wrong (to high) value for the colspan attribute in a td node in the tfoot section.