Hi All.
I trying to create a local data store like this (this is an official example from docs)
But i cannot get a data from the datasource:
DataSource data size:
Where I am wrong?
I trying to create a local data store like this (this is an official example from docs)
var movies = [ {
title: "Star Wars: A New Hope",
year: 1977
}, {
title: "Star Wars: The Empire Strikes Back",
year: 1980
}, {
title: "Star Wars: Return of the Jedi",
year: 1983
}
];
var localDataSource = new kendo.data.DataSource({data: movies});
But i cannot get a data from the datasource:
localDataSource.data(); // returns "[]"
DataSource data size:
localDataSource.total(); // returns "0"
Where I am wrong?