Grid with scroll of browser

Hi,

We are using grid with lazy loading. This adds a scrollbar to the grid component.
We want to achieve that there is only a scrollbar of the browser and that this triggers the lazy loading.

Is this possible?

Vaadin 14 grid is used.

Kind regards

Hi,

Grid internally has quite a complex scrolling mechanism. This feature is not implemented, but I guess it could be achieved with some dirty workarounds, i.e.

grid.$.table.style.overflow = 'hidden';
grid.$.outerscroller.style.overflow = 'hidden';

(not sure if it will work on all platforms; should be done via executeJs if needed from Flow)

Best regards

There’s a feature request for this, which you can +1 in GitHub: [Delegate scrolling to ancestor element]
(https://github.com/vaadin/vaadin-grid/issues/1364)