I have a requirement to save and fetch data getting from ODATA service in local storage. I am able to fetch data from ODATA feed and subsequent create KendoUI DataSource. I am using this DataSource to bind to KendoUI Mobile ListView as following ,
// the remote service url
i am able to use this DataSource in KendoUI ListView as following ,
Now I am trying to save returned data on local storage as following
and creating new DataSource where I am reading data from local storage not from the ODATA Feed as following
ospeakerData = localStorage.getItem(
speakerData1 = JSON.parse(ospeakerData);
data = speakerData1
But it seems it is not working .. when I did console.log of JSON.stringify(speakerData.data()) .. it returns ana empty array .
Please help me to save returned feed from ODATA or in other words save datasource.data on local storage.