Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

When applying filtering on a non-nullable DateTimeOffset column using the Menu filter, reopening the filter menu for the same column throws an unhandled exception:

Unhandled exception rendering component: Unable to cast object of type 'System.DateTimeOffset' to type 'System.Nullable`1[System.DateTime]'.
System.InvalidCastException: Unable to cast object of type 'System.DateTimeOffset' to type 'System.Nullable`1[System.DateTime]'.



Replication steps:

https://blazorplayground.syncfusion.com/embed/BjLIDntUTBxsXpmn?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5

1.Open the above sample link.
Open the Menu Filter for the DateTimeOffset OrderDate column and apply any filter.
Close the filter dialog.

2.
Reopen the
 Menu Filter for the same column.

3.
Observe the exception that appears.