I have a datagrid that I am populating similar to the documentation but have noticed that if I do a F5 in the browser to refresh the page, the datagrid becomes blank. When I look at the debugger, I get the following exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'SocketsHttpHandler'....
Here is my code to load the page:
public IEnumerable<AuditConfiguration> configs;
private CancellationToken cancellationToken;
protected override async Task OnInitializedAsync()
{
configs = await apiClient.GetAllConfigurations(cancellationToken);
}
<RadzenDataGrid @ref="configGrid" AllowFiltering="true" AllowColumnResize="true" AllowSorting="true"
Data="@configs" TItem="AuditConfiguration" EditMode="DataGridEditMode.Single">
Is there something else I am missing to keep the data (re)loaded in the grid? I'm assuming this is typical Blazor (server side) behavior but I can't find anything about using a different event to load the data on page/component load.
Thanks,
Greg