Reading local JSON file - works in simulator, not device

2 posts, 0 answers
  1. Cliff Gibson
    Cliff Gibson avatar
    45 posts
    Member since:
    Oct 2009

    Posted 08 Jan 2015 Link to this post

    I'm building an iOS app using Telerik Platform

    I have a json file stored in "data/Books/books.json in my iOS project and when I use the code below in the simulator the ListView renders as expected.  However when I use the AppBuilder app on my iPad the ListView does not display...Anyone have any ideas why this may be???

    function GetAvailableBooks()
        var AvailableBooks = new{
            transport: {
            read: "data/Books/books.json"}
            template : $("#AvailableBooksTemplate").html(),
            dataSource: AvailableBooks

  2. Tsvetina
    Tsvetina avatar
    2101 posts

    Posted 13 Jan 2015 Link to this post

    Hi Cliff,

    My colleague answered your question in the support ticket you have opened but we will also copy the answer here, in case others are interested in the reply:

    ​I investigated the issue you are describing and in the end figured out that you have not declared your Kendo UI DataSource correctly. You are setting the url to the property directly while you have to set it to the property. Furthermore, depending on your .json file, you will have to set a value to the property to specify where the array of data in your .json file is.

    If you have any comments about the suggestion and the results, post in the support thread if this is fine by you, so we avoid double postings.


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top