Grid not showing data after successful json call

2 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    Jun 2018

    Posted 29 Jan 2019 Link to this post

    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?
  2. Stefan
    Admin
    Stefan avatar
    2817 posts

    Posted 30 Jan 2019 Link to this post

    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
Back to Top