SfGrid No Longer Supports Enums

Hi Team Syncfusion. I am getting an error with 23.1.39 that I did not get in prior versions. I have a column bound to an `enum` value, and it is using an Excel grid filter. When I open the filter now, I get the following exception:


```

System.InvalidCastException: Unable to cast object of type 'My.Namespace.Enum' to type 'System.String'.

at Task Syncfusion.Blazor.Grids.Internal.FilterCheckBoxRenderer.UpdateDataSource(bool isInputSearch, IEnumerable<object> customFilterData, int filterChoiceCount)+(object val) => { }

at List System.Linq.Enumerable+WhereEnumerableIterator.ToList()

at async Task Syncfusion.Blazor.Grids.Internal.FilterCheckBoxRenderer.UpdateDataSource(bool isInputSearch, IEnumerable<object> customFilterData, int filterChoiceCount)

at async Task Syncfusion.Blazor.Grids.Internal.FilterCheckBoxRenderer.OpenFilterDialog(string XPosition, string YPosition)

at async Task Syncfusion.Blazor.Grids.Internal.FilterCheckBoxRenderer.DialogCreated()

at async Task Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)

at async Task Syncfusion.Blazor.Popups.SfDialog.OnAfterScriptRendered()

at async Task Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(bool firstRender)

at async Task Syncfusion.Blazor.Popups.SfDialog.OnAfterRenderAsync(bool firstRender)

at async Task Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

```


Again this worked fine in 22.* and prior. Thank you for any guidance you can provide.


2 Replies 1 reply marked as answer

MI Mike-E October 11, 2023 01:27 PM UTC

Nevermind!  This appears to be fixed in 23.1.40.  WOOOHOO!  Thank you for supporting your products so diligently!


Marked as answer

NP Naveen Palanivel Syncfusion Team October 23, 2023 02:52 AM UTC

Hi Mike,


Welcome


We are glad to hear that your query has been resolved.


Please get back to us if you need further assistance.


Regards,

Naveen Palanivel.


Loader.
Up arrow icon