Hi Roberto,
Greetings from Syncfusion support.
We have analyzed the shared sample, and we could see that you are assigning null for the complex type field. So based on this scenario, we suggest you to assign empty object instead of null for the complex type field to overcome the reported problem.
|
public Task<IEnumerable<WeatherForecast>> GetForecastListAsync(DateTime startDate)
{
var rng = new Random();
return Task.FromResult(Enumerable.Range(1, 20).Select(index => new WeatherForecast
{
...
Wind = (index % 2) == 0 ? new Wind { ID = 1, WindName = "Sirocco" } : new Wind(),
}));
}
|
We are also attaching a modified sample for your convenience, please download the sample from the link below,
Kindly refer the above sample and if you are facing any difficulties or if we have misunderstood your requirement then kindly get back to us with the details to proceed further.
Regards,
Renjith R