Over the last half of a year, we have been developing a .NET Core application that uses Ignite controls such as igGrid and igCombo. We are using v16.1 of Infragistics.
Everything has been working fine under .NET Core RC2. However, today I upgraded to "Visual Studio Update 3" and the latest .NET Core 1.0. Now, the igGrid and igCombo controls in our website no longer work (they render, but don't show any data). I've attached some screenshots.
Also, I'm seeing some JavaScript errors that I wasn't seeing before the upgrade, such as:
Is this a known issue? Do I need to wait for a new release of IgniteUI that supports .NET Core? Any information that you can provide would be greatly appreciated.
Below are the updates that I applied.
1) Update 3 for Visual Studio.
https://www.visualstudio.com/en-us/news/releasenotes/vs2015-update3-vs
2) .NET core 1.0
https://www.microsoft.com/net/core#windows
Thanks! Tory.
The problem turned out to be that after upgrading to the latest version of .NET Core, the JSON was getting serialized with camelcasing, which was causing the Infragistics binding to fail since it is case sensitive.
The issue is described in depth here:
https://weblog.west-wind.com/posts/2016/Jun/27/Upgrading-to-ASPNET-Core-RTM-from-RC2
For fix this issue, we added the following code to ConfigureServices method in Startup.cs
services.AddMvc().AddJsonOptions(opt =>
{
var resolver = opt.SerializerSettings.ContractResolver; if (resolver != null)
var res = resolver as DefaultContractResolver;
res.NamingStrategy = null;
}
});