ScrollBar on Top

ScrollBar on Top

cavbcavb Posts: 2Questions: 0Answers: 0
edited June 2012 in General
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

Replies

  • cavbcavb Posts: 2Questions: 0Answers: 0
    edited June 2012
    I try this but only show a scroll bar on top, with column names, but the elements of the table does not move, I need both top and bottom (default)

    [code] $('.dataTables_scrollHead').attr('style','overflow: auto; position: relative; border: 0px; width: 100%;');[/code]

    Thanks
This discussion has been closed.