I have a DataGrid which is bound to a list of objects.
These contain objects that have a property CreatedDate
This is a date.
I want to filter "handled" (where date is not null) or "unhandled" where data is null
I added a filter template and created a drop down with these two values. The onchange event executes the following code.
While the data property of the grid is correct (it shows only 1 result), the grid continues to display the old data (10 results)!
This resulted an "System.NullReferenceException: 'Object reference not set to an instance of an object.'" when executing callback. Invoke(state) in RunFromThreadPoolDispatchLoop class!
This exception was originally thrown at this call stack:
Microsoft.AspNetCore.SignalR.ClientProxyExtensions.SendAsync(Microsoft.AspNetCore.SignalR.IClientProxy, string, object, object, object, System.Threading.CancellationToken)
Microsoft.AspNetCore.Components.Server.Circuits.RemoteJSRuntime.EndInvokeDotNet(Microsoft.JSInterop.Infrastructure.DotNetInvocationInfo, Microsoft.JSInterop.Infrastructure.DotNetInvocationResult)
Microsoft.JSInterop.Infrastructure.DotNetDispatcher.EndInvokeDotNetAfterTask(System.Threading.Tasks.Task, Microsoft.JSInterop.JSRuntime, Microsoft.JSInterop.Infrastructure.DotNetInvocationInfo)
System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, object) in ExecutionContext.cs
This exception doesn't come from the OnSelectedStatusChanged event handler!
Sticking a breakpoint in the handler and stepping through, the code leaves the event handler and immediately just to this exception from RemoteJsRuntime!