Skip to content

Commit 82fa7da

Browse files
chore(grid): observable data and onread infinite loop note
1 parent c6c7485 commit 82fa7da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/grid/refresh-data.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ In this article:
8282

8383
@[template](/_contentTemplates/common/observable-data.md#tip-for-new-collection)
8484

85+
>note If you are using the [OnRead event to implement the data operations manually](manual-operations), you must not use the `.Add()`, `.Remove()` or `.Clear()` method of an observable collection - the grid monitors that collection and it fires the `OnRead` event when it changes, so calling those methods will result in an infinte loop. Either create a new collection, or use a simple List, or do not use OnRead with observable data.
86+
8587
## New Collection Reference
8688

8789
@[template](/_contentTemplates/common/observable-data.md#refresh-data)

0 commit comments

Comments
 (0)