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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to resolve the issue grid rendered with blank rows and correct record count.

Problem

           In ASP.NET Core the Grid will be rendered with blank rows and also there will be no script error / reference error will be thrown in console window.

 

 

Cause:

In ASP.Net Core the camel case issue cause to render the Grid with empty rows. This is because while serializing the JSON object the columns first letter will not be serialized properly (converted to lower case) which makes the column name different in server side and client side.

 

Solution:

To overcome this issue kindly follow either of the below solutions

 

  1. Insert the below suggested code into your startup.cs file of your application and run the application.

 

   

 

Refer the below screenshot for the full code snippet of the suggested solution.

 

 

  

  

http://www.syncfusion.com/downloads/support/directtrac/199652/797641307_e4638df8.PNG

 

2. You can also render the Grid by specifying the columns field name in camelCase. (i.e.) in server side the column name will be defined as OrderID, CustomerID. But while rendering the Grid, specify the Field property as ordedID, customerID. 

 

 

 

Output Screenshot:

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
9004 07/23/2018 07/23/2018 JavaScript ejGrid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon