Data not rendering in grid

2 posts, 0 answers
  1. Kinnary
    Kinnary avatar
    3 posts
    Member since:
    Oct 2013

    Posted 09 Oct 2013 Link to this post

    Hi
    I get the data back just fine, but I am not able to render it in the grid. My grid rendering function is here:

    function RenderDetailedBvtResults(data) {
    debugger;
    $('#gridBvtDetails').kendoGrid({ 
    data: data,
    scrollable: false,
    toolbar: 'Details',
    });
    }
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2891 posts

    Posted 10 Oct 2013 Link to this post

    Hi Kinnary,

    `data` is property of the DataSource, not the Grid itself. Please try the following:
    function RenderDetailedBvtResults(data) {
        $('#gridBvtDetails').kendoGrid({
            dataSource: {
                data: data
            }
        });
    }


    Regards,
    Alexander Valchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top