I've been racking my brain for several days trying to figure out a way to add an entire JSON collection to a DataStore without iterating through the JSON collection and calling .add for all the items.
Is there a way to do this?
1 Answer, 1 is accepted
0
Alexander Valchev
Telerik team
answered on 04 Jun 2012, 02:00 PM
Hi Anthony,
The add method accepts an object (single model) as a parameter, the data method on the other hand operates with arrays. To pass an entire JSON collection to the dataSource you can try the following: