We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

"Argument type does not match" error in filtering


Error in filtering.

Is there a good solution?

Attached is a sample.

In the sample application, when filtering on the column "Login", I get an "Argument types do not match" error.

The same error occurs for column "Balance" and column "Leverage".



Attachment: sample_(2)_f4fcf5aa.zip

3 Replies 1 reply marked as answer

RR Rajapandi Ravi Syncfusion Team October 17, 2022 07:02 AM

Hi Pylori,

Greetings from Syncfusion support

By analyzing your application, We found that the issue may be raised because of some SerializerSettings. So, we suggest you add the below code in your program.cs file to overcome the problem. Refer to the below documentation for more information.

UG: https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/data-binding#troubleshoot-grid-render-rows-without-data

If the ASP.NET CORE version is 3.X then add the below code in startup.cs file




using Newtonsoft.Json.Serialization;


var builder = WebApplication.CreateBuilder(args);


builder.Services.AddMvc().AddNewtonsoftJson(options =>


    options.SerializerSettings.ContractResolver = new DefaultContractResolver();



To use AddNewtonsoftJson in your project we need include the Microsoft.AspNetCore.Mvc.NewtonsoftJson assembly,

Note : We need to install NewtonSoft.JSON dependency since Syncfusion.EJ2.AspNet.Core dependent to NewtonSoft.JSON package.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/sample-730834837.zip

Video demo: https://www.syncfusion.com/downloads/support/directtrac/general/ze/vd1144737061.zip


Rajapandi R

Marked as answer

PY Pylori October 25, 2022 03:05 AM


Thank you for your response.

Thanks to your response and the samples you provided, we were able to solve the problem.



RR Rajapandi Ravi Syncfusion Team October 25, 2022 11:58 PM

Hi Pylori,

We are happy to hear that our provided solution was helpful to resolve your problem.

Please get back to us if you need further assistance.


Rajapandi R

Live Chat Icon For mobile
Up arrow icon