All Telerik controls now provide full support for the new ASP.NET AJAX framework.
Telerik's own patent-pending AJAX mechanism does not interfere in any way with the ASP.NET AJAX framework. Telerik RadAjax, as well as all built-in AJAX features of Telerik RadControls for ASP.NET work with ASP.NET AJAX without any conflict.
To enable ASP.NET AJAX with Telerik RadWindow:
- Make sure you have the ASP.NET AJAX framework installed.
- If the control is initially invisible and is shown after an ASP.NET AJAX update, you should manually register all the required CSS files in the head tag of your page. Otherwise the control will not be displayed correctly. The easiest way to do this is through a LINK element:
| |
Copy Code |
|
<link href="~/RadControls/Window/Skins/[SkinName]/styles.css" rel="stylesheet" runat="server" > |
-
Place the instance of Telerik RadWindow in an ASP.NET AJAX UpdatePanel.
To enable or disable the ASP.NET AJAX UpdatePanel, set the EnablePartialRendering property of the ScriptManager class to True or False accordingly.
Grid built-in AJAX has higher priority than external AJAX frameworks - ASP.NET AJAX and RadAjax. In case one need the Grid to be updated from an ASP:UpdatePanel, Grid's EnableAJAX should be turned off.
Known problems related to ASP.NET AJAX interoperability
Exceptions
If you receive exceptions such as:
System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)
you need to move the code block outside of the head tag. For example:
| Before: |
Copy Code |
|
<head runat="server"> <script> var controlClientObject = <%= RadControl1.ClientID %> ... </script> </head>
<body> ... </body> |
| After: |
Copy Code |
|
<head runat="server"> </head> <body> <script> var controlClientObject = <%= RadControl1.ClientID %> ... </script> ... </body> |