V11.3.0 RadzenDataGrid throw InvalidOperationException

I have just update to v11.3.0 and the page which is same as Radzen demo - DataGrid Master Detail Hierarchy on demand

It throw exception error, then I downgrade to v11.2.8, it works.

System.InvalidOperationException: A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
         at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection()
         at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext()
info: 9/3/2026 17:10:52.102 RelationalEventId.CommandExecuted[20101] (Microsoft.EntityFrameworkCore.Database.Command)

If you are using IQueryable try to materialize the parent data with ToList() before binding it, as the demo does.

Thanks, I just try change from IQueryable to List for DataGrid’s Data property.

And it is works. But eventully it will take more time to load data and more memory usage, because the whole dataset is about 80000 rows.

I have read the change log of v11.3.0, seem some changes on DataGrid, but I suggest it should be let user choose List or IQueryable just like v11.2.8.

We already fixed the problem and we will release update immediately!

1 Like

Thanks you! Radzen Team :smiling_face_with_three_hearts: