webapi is not binding, not displaying

I am testing out syncfusion, ViewBag binding works fine, the problem is when I try to bind Webapi, spent 6 hours to figure it out, but I couldn't, so I want to ask here

I am using .netcore mvc 

I have 2 records, but not showing with webapi

 




Attachment: GridWebapiissue_83022f82.zip

1 Reply

PS Pavithra Subramaniyam Syncfusion Team October 25, 2021 12:54 PM UTC

Hi Young, 

Thanks for contacting Syncfusion support. 

From the shared details we could see that the issue is due to the casing issue in ASP.NET Core application. For WebAPI adaptor the response from the server should be “Item” and “Count” but got ‘item’ and ‘count’. You can overcome this casing issue by adding DefaultContractResolver in Startup.cs file. Please refer to below documentation link for more information. 


Please get back to us if you need any further assistance on this. 

Regards, 
Pavithra S 


Loader.
Up arrow icon