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

Disable AJAX if Blackberry Browser is detected?

3 Answers 64 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 17 May 2010, 06:59 PM
Concept:

Is it possible to disable AJAX dynamically and have the form works (via regular post-back) if Blackberry Browser is detected?
Currently my AJAX Mgr definition is static in aspx.

It would need to work for AJAX capable and non-capable clients.   Comments?

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 May 2010, 09:35 PM
Hello Lenny,

I recommend you try the following approach
<script type="text/javascript">
   function ajaxManagerOnRequestStart(sender, args)
   {
       if (navigator.userAgent.toLowerCase().indexOf("blackberry") >= 0)
           args.set_enableAjax(false);
   }
</script>

Kind regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Patrick
Top achievements
Rank 2
answered on 09 Dec 2010, 03:15 PM
I got the chart and custom png stuff to work on Blackberry Bold 9000 and BB9800.
But the tabstrip is a complete mess.. Doesn't work at all and looks like.. well...
Could this be ajax related as well?
0
Kamen Bundev
Telerik team
answered on 15 Dec 2010, 06:14 PM
Hi Patrick,

I've just tested RadTabStrip demos in Blackberry 9550 and 9800 and they seem to work normally. Can you give me a specific sample where the RadTabStrip doesn't work?

Several RadTabStrip skins (the non-rectangular ones) do look misplaced in Blackberry OS 5 but this is due to the Blackberry's chosen zoom method and unfortunately can't be fixed. You can still use the rest of the skins which look better (the Simple skin should look best since it is based on borders and backgrounds only.

Regards,
Kamen Bundev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Ajax
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Patrick
Top achievements
Rank 2
Kamen Bundev
Telerik team
Share this question
or