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!

1
Vote

Hi,

In my code I have to issue a ReadAsync request to my custom adaptor like this:

var result = (await testAdapter.ReadAsync(new DataManagerRequest()

        {

            RequiresCounts = false,

            Where = new List()

            {

                new WhereFilter() { Field = nameof(Test.TestEnum), Operator = nameof(Operator.Equal).ToLowerInvariant(), value = TestEnum.Test_0 }

            }

        }) as IEnumerable);


When the property TestEnum on the "Test" class is nullable this operation fails with 

 "System.ArgumentException: Argument types do not match". I've attached a sample reproducing the issue, just run it and click on the "Test bug" button.


However, using a query which also puts a where constraint on this nullable property seems to work. The problem can be also circumvented by casting TestEnum.Test_0 to an integer in the WhereFilter.


Since I've figured out a workaround this issue isn't critical, I just wanted to report it anyway since it took some time investigating this.

Looking forward to hearing from you.

Best regards
Daniel