Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
allProductsData = new kendo.data.DataSource({
offlineStorage: productsStorageKey,
type: "odata",
transport: {
read: {
url: "http://services.odata.org/V2/Northwind/Northwind.svc/Products",
dataType: "jsonp",
}
},
schema:{
data:function(response)
{
var dataArray = null;
if(response.d){
dataArray = response.d.results;
}
else{
dataArray = response;
}
return dataArray;
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment