Skip to content

Commit bd313b6

Browse files
TatuLundedler-san
andauthored
fix: Add a note about Grid's refresh behavior (vaadin#3735)
Add note about Grid refresh behavior when using async updates. Co-authored-by: edler-san <19165931+edler-san@users.noreply.github.com>
1 parent 6621f13 commit bd313b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/flow/binding-data/data-provider.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ Button modify = new Button("Modify data", e -> {
432432

433433
Alternatively, if you've bound a mutable [classname]`List` to your component, you can use helper methods in the list data view to add or remove items. You can also get an item count by hooking to the item count change event or request the item count, directly.
434434

435+
[NOTE]
436+
`Grid` is a component with complex server and client interactions. For example, when you update a `Grid` by using [methodname]`Grid.getDataProvider().refreshAll()`, the `Grid` reports this to the server. Hence, there's a request to the server. For example, if you periodically update a `Grid` from a background thread, the application won't be idling, and the session won't time out.
437+
435438
For example, it's possible to use a mutation method and listen for an item count change through the list data view, as follows:
436439

437440
[source,java]

0 commit comments

Comments
 (0)