I have a grid which references another table in order to get a status name instead of an id number. AllowFiltering is allowed in the grid.
I like ForeignColumn because it allows to filter by the referenced named instead of the Id.
I was using the standard filtering (by writing on the textbox) but it does not work on date fields. Is there any way to filter by date?
To allow search dates, I added the Type FilterType.Menu. However it throws an exception after clearing the filter of the ForeignColumn (setting the filter works ok, but clearing it generates the issue).
warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.updateValues(Dictionary`2 props)
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.initValue(Dictionary`2 props)
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.InitialRendered()
at Syncfusion.Blazor.BaseComponent.InitComponent()
at Syncfusion.Blazor.BaseComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.DropDowns.DropDownBase`1.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.OnHybridAfterRender(Boolean firstRender)
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.DropDowns.SfAutoComplete`2.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit '8BTgRQ-9vq01u-EQn8SGzoh77b509eVEgE8HXmESDx0'.
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.updateValues(Dictionary`2 props)
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.initValue(Dictionary`2 props)
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.InitialRendered()
at Syncfusion.Blazor.BaseComponent.InitComponent()
at Syncfusion.Blazor.BaseComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.DropDowns.DropDownBase`1.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.OnHybridAfterRender(Boolean firstRender)
at Syncfusion.Blazor.DropDowns.SfDropDownList`2.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.DropDowns.SfAutoComplete`2.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit '8BTgRQ-9vq01u-EQn8SGzoh77b509eVEgE8HXmESDx0'.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Microsoft.JSInterop.JSRuntime.InvokeWithDefaultCancellation[T](String identifier, Object[] args)
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at Syncfusion.Blazor.SfBaseComponent.InvokeMethod(String methodName, Object[] methodParams)
at Syncfusion.Blazor.Popups.SfDialog.ComponentDispose()
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_0(Object state)
at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource`1 completion, SendOrPostCallback d, Object state)
at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.<>c.<.cctor>b__23_0(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)
I'm using v18.2.0.48 and the Grid uses OData.