From 3854d28548f98a34f26123b3c68b1b807897ce81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Tue, 29 Sep 2026 10:33:47 +0000 Subject: [PATCH] docs: document TreeGrid.getDataProvider without list/lazy views Co-Authored-By: Claude Opus 5.5 --- .../com/vaadin/flow/component/treegrid/TreeGrid.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vaadin-grid-flow-parent/vaadin-grid-flow/src/main/java/com/vaadin/flow/component/treegrid/TreeGrid.java b/vaadin-grid-flow-parent/vaadin-grid-flow/src/main/java/com/vaadin/flow/component/treegrid/TreeGrid.java index 2211b6d38ab..807447c6e78 100644 --- a/vaadin-grid-flow-parent/vaadin-grid-flow/src/main/java/com/vaadin/flow/component/treegrid/TreeGrid.java +++ b/vaadin-grid-flow-parent/vaadin-grid-flow/src/main/java/com/vaadin/flow/component/treegrid/TreeGrid.java @@ -960,6 +960,17 @@ public HierarchicalDataCommunicator getDataCommunicator() { return (HierarchicalDataCommunicator) super.getDataCommunicator(); } + /** + * Returns the hierarchical data provider of this tree grid. + *

+ * Use the returned provider to inspect items and to refresh them after + * changes. {@link #getListDataView()} and {@link #getLazyDataView()} are + * not supported on TreeGrid and throw + * {@link UnsupportedOperationException}. + * + * @return the hierarchical data provider of this tree grid, not + * {@code null} + */ @SuppressWarnings("unchecked") @Override public HierarchicalDataProvider> getDataProvider() {