Device Orientation in Ion

Thread is closed for posting
3 posts, 0 answers
  1. ztx
    ztx avatar
    2 posts
    Member since:
    Jan 2013

    Posted 28 Jan 2013 Link to this post

    I was wondering if the "Supported interface orientation" (In Icenium Graphite/Mist -> Project -> Properties -> Supported interface orientation) is supposed to work on the device, for in the simulator it locks the view in portrait mode when landscape is disabled, but this doesn't seem to work when the app is ran on the device itself.

    I know about the difficulties concerning this in browsers and that the browser has no actual control over this, and that it's possible to make the design responsive to this (see for example ), but I'm hoping this is supported without these work-arounds in Ion. Sorry if there is already a topic on this subject, I wasn't able to find it in my hurry. 
  2. Evgeni "Zammy" Petrov
    Evgeni "Zammy" Petrov avatar
    168 posts

    Posted 29 Jan 2013 Link to this post


    Thanks for your interest in Icenium!

    Orientation lock does not work when deployed in Ion. Ion itself is stand alone container for application and rotation of Ion itself can't be synced for now with rotation lock of the app deployed in it. You can test rotation lock if you build and deploy application directly on device, not using Ion.

    You can also use define a global function like that : 

    function shouldRotateToOrientation(orientation) {   
    return orientation == 0;

    This works only for iOS.

    I hope this helps :)

    Kind regards,
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
  3. ztx
    ztx avatar
    2 posts
    Member since:
    Jan 2013

    Posted 29 Jan 2013 Link to this post

    Hi Nikolay and Evgeni,

    Thanks a lot for your quick reply. The function also works like a charm!

    Kind regards
Back to Top