WebFeb 4, 2013 · If yoy have several datatables you can access each by the wrapper: $ ('#example').dataTable ( {'sScrollY': 100}); //some stuff.. objDataTable.fnSettings ().oScroll.sY = '225px'; $ ('#example_wrapper').children ('.dataTables_scroll').children ('.dataTables_scrollBody').css ('height', '225px'); Share Follow edited Jan 16, 2014 at 17:45 WebMy current problem, is that I want to do horizontal and vertical scrolling, and DataTables can handle it, just not in the 100% width context (that resizes as the browser expands & shrinks, and smartly puts a scrollbar when the table can't shrink anymore). Any ideas? Replies mykbaker Posts: 4 Questions: 0 Answers: 0 October 2010
Chapter 5 Flexdashboard with DataTable Dashbord for Public …
WebI would rather not provide a fixed height for scrollY, as different users will be using different display sizes. I tried scrollY: "auto" but it didn't work. scrollY: "100%" works to a degree, but the scrolling performance is significantly impacted. Is there another way to configure DataTables to do this? Answers WebscrollY Since: DataTables 1.10 Vertical scrolling. Description Enable vertical scrolling. Vertical scrolling will constrain the DataTable to the given height, and enable scrolling for … hideaway 2.0 huntsville
How to fix header not scrolling with body in datatables table
WebNov 26, 2011 · $ ('#example').dataTable ( { "autoWidth": false } ); That will stop DataTables adding its calculated widths to the table, leaving your (presumably) width:100% alone and allowing it to resize. Adding a relative width to the columns would also … WebMay 8, 2024 · I just figured out a way to solve this on my own way. First, add 100% width to datatable header. .dataTables_scrollHeadInner { width:100% !important; } .dataTables_scrollHeadInner table { width:100% !important; } Then after all the page contents have been loaded and shown, force datatable to redraw using "order". WebMay 31, 2024 · DataTables scrollY Option. DataTables is jQuery plugin that can be used for adding interactive and advanced controls to HTML tables for the webpage. This also … hideaway 77 youth cafe