You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vaadin-grid-flow-parent/vaadin-grid-testbench/src/main/java/com/vaadin/flow/component/grid/testbench/TreeGridElement.java
+9-15Lines changed: 9 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -344,23 +344,17 @@ public boolean hasRow(int rowFlatIndex) {
344
344
}
345
345
346
346
/**
347
-
* Gets the total number of rows.
347
+
* Gets the total number of rows currently known to TreeGrid.
348
348
* <p>
349
-
* Note that for TreeGrid this does not return reliable results if rows are
350
-
* expanded. Due to the lazy-loading nature of the grid, children of
351
-
* expanded rows are only loaded into the grid when they are scrolled into
352
-
* view. Likewise, they are removed again from the grid at some point when
353
-
* they are scrolled out of view. These child rows then only count against
354
-
* the total row count while they are loaded into the grid. Effectively,
355
-
* that means that the total row count will depend on the scroll position of
356
-
* the grid.
349
+
* This method returns the actual total number of rows across the entire
350
+
* expanded tree only when TreeGrid uses a {@code HierarchyFormat#FLATTENED}
351
+
* data provider.
357
352
* <p>
358
-
* We are looking into making this more reliable by adding additional APIs
359
-
* to TreeGrid that would allow the component to keep track of the total
360
-
* number of rows just based on the expanded rows, and regardless of the
0 commit comments