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

RadAjaxManager and Placeholders

3 Answers 169 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 19 Jun 2009, 04:41 PM
Is it possible to use a placeholder as the ajaxupdatedcontrol in a ajaxmanager call?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Jun 2009, 01:57 PM
Hello Matt,

Yes, it is possible to ajaxify the PlaceHolder using AjaxManager, as shown below:
aspx:
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
       <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="Button1"
                  <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="PlaceHolder1" /> 
                  </UpdatedControls> 
            </telerik:AjaxSetting> 
       </AjaxSettings> 
 </telerik:RadAjaxManager> 

Thanks
Princy.
0
Matt
Top achievements
Rank 1
answered on 22 Jun 2009, 05:28 PM
This script doesn't seem to work.  At least the loading panel doesn't seem to show.  But if you change "Placeholder" to "Panel" then the loading panel works.

<form id="form1" runat="server"
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
<div> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="Button1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="PlaceHolder1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="WebBlue" /> 
    <asp:PlaceHolder ID="PlaceHolder1" runat="server"
        This is a test 
    </asp:PlaceHolder> 
    <br /> 
    <asp:Button ID="Button1" runat="server" Text="Button" /> 
</div> 
</form> 

0
Accepted
Sebastian
Telerik team
answered on 23 Jun 2009, 10:05 AM
Hi Matt,

Indeed in order to display the loading panel you need to use asp Panel (which is rendered as a div on the page) instead of asp PlaceHolder which does not render any html. Thus the loading panel can be associated with the asp Panel (the div respectively).

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Matt
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Matt
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or