RadAjaxManager Designer Does Not Locate All Controls

This troubleshooting help article discusses four scenarios where RadAjaxManager is not able to locate some controls on a page but they are still AJAX enabled and updated by RadAjaxManager .

  1. Controls Are Placed in Cells of an asp:Table The table cells need to have an ID set (Example 1) as well as runat="server" included and the designer will locate all the controls within the table

Example 1: Setting the ID for table cells of an asp:Table and setting runat='server'.

<asp:Table ID="Table1" runat="server">
            <asp:TableRow runat="server" ID="rol_1">
                <asp:TableCell runat="server" ID="cell_11">
                    <asp:Panel ID="Panel1" runat="server">
                        <asp:Button ID="Button1" runat="server" Text="Button" />
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:TableCell runat="server" ID="cell_12"></asp:TableCell>
                <asp:TableCell runat="server" ID="cell_13"></asp:TableCell>
            <asp:TableRow runat="server" ID="row_2">
                <asp:TableCell runat="server" ID="cell_21">
                    <div runat="server" id="div1">
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                <asp:TableCell runat="server" ID="cell_22"></asp:TableCell>
                <asp:TableCell runat="server" ID="cell_23"></asp:TableCell>

After the IDs of the table cells have IDs and the runat="server" set, then the button, check box and text box could be located by the designer and you can add the AJAX settings shown in Example 2 .

Example 2: AJAXify the controls placed in cells of asp:Table.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <telerik:AjaxSetting AjaxControlID="Button1">
                        <telerik:AjaxUpdatedControl ControlID="TextBox1" />
                <telerik:AjaxSetting AjaxControlID="CheckBox1">
                        <telerik:AjaxUpdatedControl ControlID="TextBox1" />
  1. Control Is Nested in a Template of a Composite Control. Those templates may "hide" wrapped controls from the RadAjaxManager Designer. Telerik Support recommends addingAJAX settings programmatically in such scenarios, which together withFindControl method usage, provides RadAjaxManager with the ability to AJAX-enable and update controls at all "levels" of the application. For example, if the control you want to update is located within RadDockableObject (see RadDock web control),it could be found at runtime using RadDockableObject.FindControl("<controlID>") and then set it as updated control. You can see this approach in the AJAX RadDock online demo.

  2. Controls are placed in a WebUserControl. The previous case is valid here as well. You could use the same approach and add AJAX settingsdynamically.For example if the control is placed in aWebUserControl, it could be found at runtime using the WebUserControl1.FindControl("<controlID>") and then set it as an update control. See also how to AJAX-enable user controls.

  3. Controls are placed in a different content of MasterPage scenario. You can follow the example of adding AJAX setting programmatically as the controls are hidden from the designer when placed in a content place holder. In this case you can find the control at runtime using the ContentPlaceHolder1.FindControl("<controlID>") and then set it as an update control.

See Also

In this article
Not finding the help you need? Improve this article