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
[program.cs]
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.
https://ej2.syncfusion.com/aspnetcore/documentation/grid/getting-started-core#install-aspnet-core-package-in-the-application
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
Regards,
Rajapandi R