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

Device Orientation in Ion

2 Answers 109 Views
AppBuilder companion app
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ztx
Top achievements
Rank 1
ztx asked on 28 Jan 2013, 05:37 PM
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 http://www.evotech.net/blog/2007/07/web-development-for-the-iphone/ ), 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 Answers, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 29 Jan 2013, 09:28 AM
Hello,

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) {   
alert(orientation);
return orientation == 0;
}

This works only for iOS.

I hope this helps :)


Kind regards,
Nikolay
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
ztx
Top achievements
Rank 1
answered on 29 Jan 2013, 01:28 PM
Hi Nikolay and Evgeni,

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

Kind regards
Tags
AppBuilder companion app
Asked by
ztx
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
ztx
Top achievements
Rank 1
Share this question
or