ScrollBar on Top
ScrollBar on Top
how I can add a horizontal scroll bar at the top of the datatable, by default is in the bottom when it is initialized to infinity or index is much higher than the generated elements
[code] oTable = $('#tblTrx').dataTable(
{ "oLanguage": { "sSearch": "Search Documents:" },
"sDom": '<"toolbar">frtip',
"bFilter": false,
"sScrollX": "100%",
"bScrollCollapse": true,
"sPaginationType": "bootstrap",
"bSort": false,
"bPaginate": false,
"iDisplayLength": 100000,
});
[/code]
Thanks a lot
[code] oTable = $('#tblTrx').dataTable(
{ "oLanguage": { "sSearch": "Search Documents:" },
"sDom": '<"toolbar">frtip',
"bFilter": false,
"sScrollX": "100%",
"bScrollCollapse": true,
"sPaginationType": "bootstrap",
"bSort": false,
"bPaginate": false,
"iDisplayLength": 100000,
});
[/code]
Thanks a lot
This discussion has been closed.
Replies
[code] $('.dataTables_scrollHead').attr('style','overflow: auto; position: relative; border: 0px; width: 100%;');[/code]
Thanks