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

Combining Data for a Grid

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 16 Dec 2011, 08:32 PM
I am trying to show data from a long running calculation in Grid. In order to speed the process up I have broke the data into several calls to a webservce, giving me several groups of JSON data. What is the best way to put that in a Grid? I would like to add each section to the Grid as it returns rather than waiting and having everything pop at the end.

What is the best way of doing this?

I have tried creating a kendo.data.DataSource and then adding the records. The demo shows an add method, but I am getting an error when I call it.
Declared at top of script, the add line is in an anonymous function from a success function on a $.ajax call.
var localDataSource = kendo.data.DataSource;

Error from FireBug Console: localDataSource.add is not a function

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 20 Dec 2011, 10:47 AM
Hello Randy,

I'm afraid that the requested functionality is not supported.

The add method you are referring to is meant for adding/attaching new model instances, therefore it will require declaring a model schema. Also looking at the snippet you have pasted, the error is caused by the fact that add method is called on the type itself not on an instance of the DataSource.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Randy
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or