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

Data not rendering in grid

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kinnary
Top achievements
Rank 1
Kinnary asked on 09 Oct 2013, 11:16 PM
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',
});
}

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 10 Oct 2013, 08:11 AM
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!
Tags
General Discussions
Asked by
Kinnary
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or