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

Rotator not displaying in Android Browser

3 Answers 51 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 28 Aug 2012, 09:15 AM
Hi, I have a site that works fine in all the common desktop browsers but when viewed on the standard Browser that comes with Android 4 ICS on a tablet there are just spaces where the Rotator should be?I also tried it with the Dolphin Browser for Android, same results. I could not find anything in the documentation that states it does not work on Android? It works OK in iPhone/iPod.

3 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 30 Aug 2012, 12:34 PM
Hi Michael,

We are aware of this issue. The RadRotator is not displayed under Android's default browser when it is configured in a SlideShow mode or in a mode that uses control buttons, for example Buttons or SlideShowButtons. For the time being you can use any of the other available modes if it is possible in your scenario. You can track the status of the issue and vote for it by following this link.

Please contact us again if you encounter additional problems.

Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Michael
Top achievements
Rank 1
answered on 17 Oct 2012, 08:48 AM
Thanks, using buttons is the prefered user experience,  is there an easy way to check the browser and determine if it is the android browser and change the mode of the rotator accordingly? If so can you please give me some sample code?
0
Slav
Telerik team
answered on 19 Oct 2012, 10:30 AM
Hello Michael,

This Stack Overflow thread shows a possible approach for detecting the use of an Android browser. If the check is positive and if the rotator is currently using buttons, you can initiate an Ajax request to update the RotatorType property of the control.

The following code sample should help you implement the workaround for this RadRotator problem:
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
var rotatorType = $find("RadRotator1").get_rotatorType();
if (isAndroid && rotatorType == Telerik.Web.UI.RotatorType.Buttons)
{
    // update the RadRotator via Ajax request
}


Greetings,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Rotator
Asked by
Michael
Top achievements
Rank 1
Answers by
Slav
Telerik team
Michael
Top achievements
Rank 1
Share this question
or