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

RadAjaxManager in user control

1 Answer 190 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
roy
Top achievements
Rank 1
roy asked on 20 Feb 2011, 04:54 PM
i'm new to the ajaxmanager and i'm doing a test but its not working.
in the ddl event i'm changing the text value of TextBox1
what am i doing wrong?
i checked to see if thats the only ajaxmanager on page and it is.
i have the scriptmanager on page also.

   
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>        
            <telerik:AjaxSetting AjaxControlID="DropDownList1">            
                <UpdatedControls>                                    
                    <telerik:AjaxUpdatedControl 
                        ControlID="divTest">
                    </telerik:AjaxUpdatedControl>                   
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
  
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" 
    onselectedindexchanged="DropDownList1_SelectedIndexChanged">
    <asp:ListItem> test1</asp:ListItem>
    <asp:ListItem> test2</asp:ListItem>
    <asp:ListItem> test3</asp:ListItem>
</asp:DropDownList>
  
<br /> <br /> <br />
  
<div style="border:solid 1px red; height:300px;" id="divTest" runat="server">
  <asp:Panel ID="panelTest" runat="server">    
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
  </asp:Panel>    
</div>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Feb 2011, 04:18 PM
Hello Roy,

To achieve the desired functionality you can set RadAjaxManager on the main page and use RadAjaxManagerProxy in the user control. You can refer to the online resources below which demonstrate how RadAjaxManager control should be used in page->user control scenario.
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/ajxusercontrols.html

Best wishes,
Pavlina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Ajax
Asked by
roy
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or