Force Portrait orientation

Thread is closed for posting
2 posts, 0 answers
  1. Vitor
    Vitor avatar
    6 posts
    Member since:
    May 2010

    Posted 15 May 2014 Link to this post


    I made a project (Jquery) with appbuilder (Cliente Window)  that runs in iOS, Android and WP8.

    I cant make the interface orientation to ONLY PORTRAIT on WP8.

    I already set on project property to only support portrait. On iOS and Android, its ok.  

    But in WP8 i can rotate to landscape.

    How can i correct this?

    sorry my english
  2. Iva Koevska
    Iva Koevska avatar
    286 posts

    Posted 19 May 2014 Link to this post

    Hi Vitor,

    Thanks for sharing your issue in public. This might be beneficial to other users who come across a similar problem.

    As explained in your support request, what you are experiencing is an erroneous behavior which is rooted in Apache Cordova.

    On one hand, with Apache Cordova, orientation settings are not really respected for Windows Phone 8. When you set them in config.xml, they are ignored (this is what using the Project Properties in AppBuilder does - it sets the orientation preference in the config.xml for the corresponding platform). The way to correct this would be to manually set the orientation in the MainPage.xaml file.

    Here is where the AppBuilder issue, or rather missing feature, comes in place. You need to manually edit MainPage.xaml to indicate the orientation restriction. And currently, there is no viable way to do that in AppBuilder. We have already logged this improvement in our feature tracking system but will appreciate it if you log it in our feedback portal so that other users might vote for it.

    Iva Koevska

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

Back to Top