🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

Scrollbar on top

James asked on February 4, 2020

I need to put an horizontal scrollbar on top of table as well as below.
I’ve find this fiddle: http://jsfiddle.net/TBnqw/1/ but to work I need to know lenght of scroll panel.
Is there a possibility to know this value?

1 answer

Illia Yatsyshyn Illia Yatsyshyn Flexmonster February 5, 2020

Hello, Andrea,
Thank you for your question.
We would like to kindly inform you that due to specifics of the rendering process of the component, it can be hard to implement an additional scrollbar. However, we would like to provide information that can be helpful for your investigation:
The width of the scroll panel can be accessed by the following code:

document.querySelector('#fm-data-sheet > div > div.fm-ui-element.fm-scroll-placeholder');

Changes in its size can be tracked using the aftergriddraw event. More information about the event can be found by the link: aftergriddraw event.
We hope it helps.
Best regards,

Please login or Register to Submit Answer