RadAjaxManager and Placeholders

4 posts, 1 answers
  1. Matt
    Matt avatar
    66 posts
    Member since:
    Apr 2009

    Posted 19 Jun 2009 Link to this post

    Is it possible to use a placeholder as the ajaxupdatedcontrol in a ajaxmanager call?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Jun 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matt
    Matt avatar
    66 posts
    Member since:
    Apr 2009

    Posted 22 Jun 2009 Link to this post

    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> 

  5. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 23 Jun 2009 Link to this post

    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.
Back to Top