Datatable with fixed header, horizontal and vertical scrolling, My experience is if you use the example above exactly as it is, ie the same table class, it should work but the moment you introduce other I'm using datatables version 1.8.1 and am having nightmares over column header alignment with vertical scrolling enabled. Lets see another method of creating a table with a fixed header and scrollable body. I would like to appear at the bottom of the table. Allan This is caused by using the horizontal scrolling inside an accordion. Include "datatable-scroll" in your use() line to enable the feature.This example shows the basic scrolling configurations available. Jquery DataTables fixed header vertical scroll. I have Horizontal scrolling enabled on both tables and it works great on the 2018 grid Sketch App free sources, Data Table with Horizontal Scroll resource, for Sketch No problem scrolling horizontally in Chrome/Firefox/ Explorer. FixedHeader assumes that there is no scrolling wrapping div for the header, but of course when scrolling is enabled, there is. The horizontal scrollbar is fixed to the bottom of the page. There is no workaround for this at the moment - that functionality would need to be written. When fixed header was set it was set as FIXED, and a new table is inserted at the BODY rather than inside the div. In the example below, we set the display to block for the
element so that its possible to apply the height and overflow properties.. The header is set to overflow: hidden so there isnt a scrollbar specifically for it (which would be really ugly!) The header is not scrolling with the body, we can't see the column header name reeves Jun 11 '19 at 14:24 Scroll horizontally sorry. Its not as simple as that I'm afraid. Unfortunately, this is not really compatible, because the width calculations dont work when the table is hidden when the page is loaded. Example of creating a table with a scrollable body by using the display property: I have a lightning:datatable component which has quite a lot of columns, where we want the user to scroll horizontally. Note: Scrolling is not currently supported on the Android WebKit browser. In the screenshot above, I want the scrollbar to appear beneath the last row of the datatable. Hi, I've noticed that occasionally the horizontal scroll bars don't show up in a datatable, especially if the columns are fixed. Datatables can be made to scroll along the x and y axes. Currently no - the way the scrolling works in DataTables is that the header and body (and footer if there is one) are split into separate tables. ScrollX Datatables not scrolling whole width of tables [Answered] RSS 2 replies Last post Apr 09, 2019 09:06 AM by Shadow_Kittencorn To work around this, please uncheck the Use DataTables checkbox. Scroll datatable header, FixedHeaderTable in its simplest form displays a fixed header for any valid table mark-up. My datatables is in a DIV and horizontal Scrolling enable due to huge table. I made it appended to the DIV instead of BODY so that the overflow rule might be inherited. Edited my question reeves Jun 11 '19 at 14:31 File: dataTables.fixedHeader.min.js (search for "appendTo") From: Using the below as an example The fixed header doesn't scroll horizontally with the horizontal scroll bar, meaning it doesn't show what So the only way to scroll the table horizontally it to use my trackpad - which makes it difficult to scroll horizontally and not vertically at the same time.