This is a migrated thread and some comments may be shown as answers.

Grid not showing data after successful json call

1 Answer 414 Views
Wrappers for React
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 29 Jan 2019, 06:08 PM
I have a web api that returns an array of json objects.  I have followed the tutorial on binding data to a kendo grid and cannot get the tbody to show up.  Columns are generated with appropriate names but the tbody fails to load with no error message.  This is the tutorial I followed https://www.telerik.com/kendo-react-ui/wrappers/grid/data-binding/.  I have gotten data to load from a local json array but when I grab from an web api it fails to load the data.  I know I am getting good data because I can inspect it with f12 and log the json to the console.  What is the grid expecting data-wise that I am not providing?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 30 Jan 2019, 07:09 AM
Hello, Alex,

This could occur if the objects fields are different then the one specified in the Grid columns.

Another option is the actual data from the Grid to be inside the property of the JSON: {gridData:[....actual data]} instead of {[...actual data]}.

In order to make more to the point suggestion could you please provide the Grid configuration and the JSON returned from the server?

Thank you in advance for the cooperation.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Wrappers for React
Asked by
Alex
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or