Is it possible to add horizontal scrollbar on top and bottom of table in Tabulator? - tabulator

I have created a tabulator with rows greater than 300 also virtual Dom set to false, Need to change scrollbar position to top of table holder than at the end. is there a way in Tabulator V4.9

Related

A Vertical and horizontal scrolling table for Excel dashboard?

Is it possible to have a vertical AND horizontal scroll bar on the same table in Excel? I have a large data sheet and want to make a small scrollable version on another sheet so I can display other metrics along side it- like a dashboard.
I can make a horizontal or vertical scrollbar work separtely using the OFFSET() function, but not with both on the same table. Any suggestions?
Here's a snippet of what I have as of right now:
https://i.stack.imgur.com/gen4j.png
Currently, the table is only displaying about a third of the data horizontal-wise.

Scrolling Not Working with Long Content in Tabulator

I have noticed that when I have cells with a lot of text, the table will not scroll vertically. As I scroll down, the table jumps back to the top. The behavior is a function of the amount of content and the width of the column. A wider column can handle more content before this behavior is seen.
I thought this was due to my own custom formatter, but it also happens for the textarea and html formatters.
This can happen if the row content is significantly longer than the height of the table.
In this case you can improve the scroll stability by increasing the size of the virtual dom render buffer on the table. this is the amount of space that the table renders above and below the table to allow smooth scrolling.
It is be default set to 2 times the height of the table. You should make sure it is at least 5 times the height of your tallest row.
This can be done using the virtualDomBuffer option in the table constructor:
var table = new Tabulator("#example-table", {
virtualDomBuffer:300, //set virtual DOM buffer to 300px
});
More information on this can be found in the Virtual DOM Documentation
Though from a user experience perspective i would query whether a table is the best way to layout data if it takes up a large vertical space. It would probably be clearer to display summary information in rows, and then use either a rowFormatter to toggle a details section under the row, or a modal to show more detail

react-virtualized List component extend height of last row

I have a List component from react-virtualized where I am using the height prop to set its row height. However, the horizontal scrollbar is overlapping with the last row, making it hard to see the text content of the last row. Is there a way to increase the height of the last row so that the horizontal scrollbar doesn't overlap with the text. Doing this dynamically in code messes things up when one is dealing with a dynamic List growing in real-time. I tried using the last-child selector but had no success. Any insight would be appreciated.
The react-virtualized Grid component accounts for horizontal and vertical scrollbar size to avoid this problem. (You can see this on the Grid demo page.) However it's expected that the List component will not scroll horizontally so it will only account for the vertical scrollbar size.
If your UI needs to scroll horizontally, you may have better luck using a 1-column Grid.

How can I center the scrollToColumn in React Virtualized's Grid?

scrollToColumn will guarantee that the Grid's column will be visible. How can it be rendered so that it's centered in the grid?
You can do this using the scrollToAlignment property:
Controls the alignment scrolled-to-rows. The default ("auto") scrolls
the least amount possible to ensure that the specified row is fully
visible. Use "start" to always align rows to the top of the list and
"end" to align them bottom. Use "center" to align them in the middle
of container.
Assuming you're using version 7.1.2+ this property will be supported.

Always show horizontal scrollbar in JavaFX-2 TableView

I have a TableView in JavaFx-2 that's inside a SplitPane and I would like to always show the horizontal scrollbar for the TableView.
The TableView has multiple columns that are wider than the width of the entire table. When the TableView has at least one row filled, the scrollbar is displayed and I can scroll across the table. However, when the table is empty, the scrollbar does not appear and I'm stuck on whichever columns were last visible.

Resources