This is a migrated thread and some comments may be shown as answers.

Friends App - Initial View

1 Answer 42 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthew
Top achievements
Rank 1
Matthew asked on 22 Apr 2014, 12:22 PM
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'
});

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 24 Apr 2014, 07:43 AM
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!

 
Tags
General Discussion
Asked by
Matthew
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
Share this question
or