RadAjax for ASP.NET AJAX

RadControls for ASP.NET AJAX

Here are listed some of the common issues one can face when using RadAjax

  1. Problem: Inline JavaScript in Dynamically Loaded User Controls is missing on the Page

    Solution: Wrap the script block into RadScriptBlock. If the issue persists in your case, you ought to register the script through the ScriptManager.RegisterStartupScript() method

    CopyASCX
    <telerik:RadScriptBlock Id="RadScriptBlock1" runat="server">
    <script type="text/javascript">
    //your code here
    </script>
    </telerik:RadScriptBlock>
  2. Problem: Control Skin is not loaded after ajax.

    Solution: This issue usually occurs when you are showing a sertain control after ajax or you are changing the Skin upon ajax. In this case, you should set the control EnableAjaxSkinRendering property true on Page_Load:

  3. Problem: Setting EventName in the ajax settings for the ajax initiator control does not work.

    Solution: The EventName property is obsolete for RadAjax. If your logic strongly replies on it, you would use ASP:UpdatePanel to ajaxify the controls instead of RadAjax. Anoter option is to wrap the updated control in a RadAjaxPanel instead of using the RadAjaxManager to ajaxify it. Then on certain client-side event of the ajax initiator, invoke ajax for the corresponding RadAjaxPanel manually. See the sample in this topic for more information.

  4. Problem: Loading panel is not displayed if you invoke multiple requests from the same ajax initiator before the previous request finished.

    Solution: Handler the RadAjaxmanager/RadAjaxPanel OnRequestStart client-side event as below:

    CopyJavaScript
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
    <script type="text/javascript"> 
        function RequstStart() { 
            var obj = Sys.WebForms.PageRequestManager.getInstance(); 
            if (obj.get_isInAsyncPostBack()) 
                obj.abortPostBack();
        } 
    </script> 
    </telerik:RadCodeBlock>