Friends App - Initial View

2 posts, 0 answers
  1. Matthew
    Matthew avatar
    16 posts
    Member since:
    Feb 2011

    Posted 22 Apr 2014 Link to this post

    I'm wondering how the same Friends App is selecting the login page as the initial view, without explicitly setting "initial" in the Kendo Mobile App initializer.

    // Initialize KendoUI mobile application
    var mobileApp = new kendo.mobile.Application(document.body, {
        transition: 'slide',
        layout: 'mobile-tabstrip',
        statusBarStyle: statusBarStyle,
        skin: 'flat'
    });

    I was trying to cause the initial view to be different, and I was successful by providing the initial property like so, but I cannot figure out why Login was the initial view by default:

    // Initialize KendoUI mobile application
    var mobileApp = new kendo.mobile.Application(document.body, {
        transition: 'slide',
        layout: 'mobile-tabstrip',
        statusBarStyle: statusBarStyle,
        skin: 'flat',
        initial: 'views/smurfsView.html'
    });
  2. Tsvetomir
    Admin
    Tsvetomir avatar
    17 posts

    Posted 24 Apr 2014 Link to this post

    Hello Matthew,

    Thank you for contacting Telerik support. 

    When there is no explicit setting "Initial", the initial view of your app is the first view in index.html. Since there is only one view in the index.html of our Friends App, the "log-in" view is selected as initial. You can easily check this by replacing the 'log in" view with one from "views" folder and running the app in simulator.

    I hope this helps.

    Kind Regards,
    Tsvetomir
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
Back to Top