flow-components icon indicating copy to clipboard operation
flow-components copied to clipboard

feat: Add horizontal scrolling support to GridElement (#8046) [1 day]

Open Artur- opened this issue 5 months ago • 2 comments

Implements scrollToColumn method to enable horizontal scrolling in Grid, particularly useful when columnRendering is set to lazy. This addresses the issue where cells return null when columns are out of view.

New features:

  • scrollToColumn(GridColumnElement) - scrolls to specific column
  • scrollToColumn(int columnIndex) - scrolls to column by index
  • isColumnInView(GridColumnElement) - checks if column is visible
  • Automatic column scrolling in getCell() method

This enhancement allows reliable testing of grids with many columns and lazy column rendering, fixing the issue where it was impossible to distinguish between genuinely null cells and cells not rendered due to being out of view.

Fixes #8046

Artur- avatar Sep 22 '25 09:09 Artur-

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 28 '25 13:10 CLAassistant

Closing as completed by https://github.com/vaadin/flow-components/pull/8511.

yuriy-fix avatar Feb 03 '26 08:02 yuriy-fix