The following code leads to an infinite loop and call stack exhaustion.
How to use the grid with an ObservableCollection as data source?
@page "/Test"
@using System.Collections.ObjectModel
<
TelerikGrid
Data
=
"_data"
Pageable
=
"true"
OnRead
=
"@Read"
/>
@code {
private readonly ObservableCollection<
object
> _data = new();
protected Task Read(GridReadEventArgs args)
{
Console.WriteLine("Read");
_data.Add(new());
return(Task.FromResult(0));
}
}