Script after datatable with ScrollY option

Script after datatable with ScrollY option

JuanluJuanlu Posts: 1Questions: 0Answers: 0

Hi,
I have a table "tbresult", that it's write with customize colums and scroll, but I have a problem, The datatable worked correcty until put the scroll options. With the scroll options I can't execute anything script after init the datatable. The problem is the two lines options of scroll. If I delete the scroll options execute correctly, but with the scroll options is impossible. I don't understand.
Please, help me. I'm using datatables v1.10.2

$('#tbresult').dataTable({
'aoColumns': [
{ 'sWidth': '4%','bSortable': false },
{ 'sWidth': '7%','bSortable': false },
{ 'sWidth': '30%','bSortable': false },
{ 'sWidth': '2%','bSortable': false },
{ 'sWidth': '6%','bSortable': false },
{ 'sWidth': '5%','bSortable': false },
{ 'sWidth': '5%','bSortable': false },
{ 'sWidth': '7%','sType':'currency','bSortable': false},
{ 'sWidth': '6%','bSortable': false},
{ 'sWidth': '7%','sType':'currency','bSortable': false},
{ 'sWidth': '7%','sType':'currency','bSortable': false},
{ 'sWidth': '5%','bSortable': false},
{ 'sWidth': '8%', 'bSortable': false }
],
'bJQueryUI': true,
'bFilter': false,
--> 'scrollY':'250px',
--> 'scrollCollapse': true,
'paging': false,
'bAutoWidth': false,
'aaSorting': []
});

alert('Datatable loads correct');

This discussion has been closed.