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

Local data binds, remote data does not

2 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 27 Feb 2019, 01:10 PM

I'm using an old version of Kendio-UI (from 2014) in an ASP.NET web site. I cannot update to a newer version of Kendo-UI. Copy/pasting code into this message is not possible because of domain separation.

I have the following (psuedo-code:

$(document).ready(function()
{
    // 0) variables that I set from hidden input fields (I have verified via the console that these
    //     values are being set as expected)
    // 1) a data url that calls a sql server stored proc to retrieve remote data
    // 2) a kendo.data.DataSource object that retrieves the remote data
    // 3) a hand-jammed local array of items that the remote datasource would normally
    //     contain (for testing)
    // 4) an array of columns to display in the grid
    // 5) a kendoui grid object to display the data
}
 

Problem: With the local testData object, the grid displays as expected. When I try to set the dataSource property to the remote data object, the grid displays 32,800 empty rows (there are only two rows of data in the remote datasource).

I have verified via the browser debugger that the remote data is being successfully retrieved, and it's in the desired/expected format, but the grid freaks out when I try to use it as a data source.

2 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 27 Feb 2019, 01:22 PM

I didn't see a way to edit the message, so I'm posting a rply to add info:

We're using jQuery 1.9.1, and KendoUI 2013.1.319.

0
John
Top achievements
Rank 1
answered on 27 Feb 2019, 03:10 PM

I fingered it out.

 

I had to set the schema property and set datato "d".

Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Share this question
or