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

RadAjaxManager Proxy Question

1 Answer 69 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 19 Aug 2010, 05:06 PM
Hi,

I have a page and a user control. The aspx page has an ajax manager and fires a loading animation when controls are clicked on this aspx page.

However, the user control which is loaded into a panel (Main_PH which is ajax!) does not fire the loading animation etc when any items in the user control ascx are clicked!

Below is the aspx code:

......
  
<telerik:RadCodeBlock ID="Default_RadCodeBlock" runat="server">
  
        <script src="Javascript/Jquery/jquery-1.2.3.pack.js" type="text/javascript"></script>
        <script src="Javascript/Jquery/jquery.jclock-2.1.1.js" type="text/javascript"></script>
  
        <script type="text/javascript"
  
........
  
            <!-- set up clock -->
            $(function($) {
                $('.jclock').jclock();
            });
  
        </script>
  
        <!-- Loading Panel -->
        <script src="Javascript/Loading Panel/Loading_Panel.js" type="text/javascript"></script>
  
        <!-- Delete Department RadConfirm Prompt -->
        <script src="Javascript/Telerik/Delete_Department_RadConfirm.js" type="text/javascript"></script>
  
  
    </telerik:RadCodeBlock>
      
</head>
<body id="home">
<form id="Default_Master_Form" runat="server">
  
    <telerik:RadScriptManager ID="Default_ScriptManager" runat="server" />
  
  
    <telerik:radwindowmanager id="RadWindowManager1" runat="server" Skin="Default" Animation="Fade" AnimationDuration="300" DestroyOnClose="True"></telerik:radwindowmanager>
  
  
    <telerik:RadAjaxManager ID="Default_RadAjaxManager" runat="server" 
        DefaultLoadingPanelID="Default_RadAjaxLoadingPanel">
        <AjaxSettings>
  
        <telerik:AjaxSetting AjaxControlID="Main_PH">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Main_PH" LoadingPanelID="Default_RadAjaxLoadingPanel">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
  
            <telerik:AjaxSetting AjaxControlID="LinkButton_MM_Inbox">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Loading_Panel" LoadingPanelID="Default_RadAjaxLoadingPanel">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
  
  
              
  
        </AjaxSettings>
    </telerik:RadAjaxManager>
  
    <telerik:RadAjaxLoadingPanel ID="Default_RadAjaxLoadingPanel" runat="server" Skin="Default"/>

<!-- main content area -->
  
                <asp:PlaceHolder ID="Main_PH" runat="server"></asp:PlaceHolder>
  
........


The user control code:

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy_Admin" runat="server">
   <AjaxSettings>
  
       <telerik:AjaxSetting AjaxControlID="LinkButton_ADMIN_CompanySetup">
           <UpdatedControls>
               <telerik:AjaxUpdatedControl ControlID="Loading Panel" LoadingPanelID="Default_RadAjaxLoadingPanel"/>
           </UpdatedControls>
       </telerik:AjaxSetting>
  
   </AjaxSettings>
</telerik:RadAjaxManagerProxy>

Does anyone know what I'm doing wrong? Any help is much appreciated.

Thanks,

Sunny

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Aug 2010, 07:30 AM
Hi Sunil,

RadAjaxLoadingPanel can be displayed only over controls with non-zero width and height, and these controls must have a wrapper HTML element with the specified ID. PlaceHolders do not have a wrapper element. Please include the Main_PH placeholder in an asp:Panel and ajaxify the asp:Panel instead.

Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Sunil
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or