RadAjax for ASP.NET

Forcing postback Send comments on this topic.
See Also
How-to > Forcing postback

Glossary Item Box

telerik is pioneer in offering cross-browser compatible components for ASP.NET but still it would be great to gracefully fallback to postbacks on unsupported browsers or old versions of supported ones. You can force Telerik RadAjax controls and all controls they ajaxify to work in postback mode by simply setting the EnableAjax property of RadAjaxPanel and RadAjaxManager to false. The best approach to achieve this will be to check on the server for the unsupported browser or specific version and set EnableAjax to false.

If you want to perform a single postback instead of AJAX request, arguments.EnableAjax should be false:

In the code-behind:  

C# Copy Code
if (!RadAjaxManager1.EnableAJAX)
{
  RadAjaxManager1.ClientEvents.OnRequestStart =
"OnRequestStart";
}
On the client:
Example Title Copy Code
<script type="text/javascript">
   function OnRequestStart(sender, args)
   {
      args.EnableAjax = false;
   }
</script>
 

See Also