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

RadAjaxLoadingPanel Not Working

8 Answers 803 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 2
Nathan asked on 29 Jun 2011, 11:05 PM
Hello,

I've been unable to get the RadAjaxLoadingPanel to work. I'm using a Master page which contains the RadScriptManager. The content page contains a RadAjaxManager, RadAjaxLoadingPanel, and RadAjaxPanel. I think I'm missing client side code that triggers the Loading Panel to appear and disappear. You can see below, I've set the Ajax Panel "LoadingPanelID" to my loading panel. I also added the RadAjaxManager in attempt to wire up the AjaxPanel & Loading Panel. I also set the Loading Panel to have absolute positioning so I could search for it using the IE developer toolbar. I did find it on the page, but it was hidden (display:none). This is why I'm assuming I'm missing the code to trigger the appearance of the Loading Panel. Suggestions are greatly appreciated.

Thanks!

Content.aspx
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" Transparency="30" ZIndex="9999999" style="position:absolute; left:200px; top:200px;">
        <asp:Label ID="lbl" runat="server" ForeColor="Red">Loading...</asp:Label>
        <asp:Image ID="img" runat="server" Height="40px" Width="40px" ImageUrl="~/images/SpinIndicator.gif" />
    </telerik:RadAjaxLoadingPanel> 


 <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" OnAjaxSettingCreating="RadAjaxPanel1_AjaxSettingCreating">
>
>
>



Content.aspx.cs
    protected void RadAjaxPanel1_AjaxSettingCreating(object sender, AjaxSettingCreatingEventArgs e)
    {
        e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always;
    } 

MasterPage.master
- Contains RadScriptManager

8 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 30 Jun 2011, 09:01 AM
Hello Nathan,

We highly recommend to avoid working with the RadAjaxManager and RadAjaxPanel controls at the same time. You should use the controls depending on your exact scenario. Refer to the following topics which describe further details about RadAjax in Master/Content page scenarios:

http://www.telerik.com/help/aspnet-ajax/ajax-masterpage.html
http://www.telerik.com/help/aspnet-ajax/ajax-manager-proxy.html

Let us know if this helps and if you need further directions.

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Nathan
Top achievements
Rank 2
answered on 30 Jun 2011, 05:03 PM
I've removed the RADAjaxManager. I only have the ScriptManager in the Master page, the RadAjaxPanel and RadAjaxLoadingPanel is on the content page.

Content.aspx

<

 

telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" Transparency="30" ZIndex="9999999" style="position:absolute; left:200px; top:200px;">

 

<

 

asp:Label ID="lbl" runat="server" ForeColor="Red">Loading...</asp:Label>

</

 

telerik:RadAjaxLoadingPanel>

 


<

 

telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" OnAjaxSettingCreating="RadAjaxPanel1_AjaxSettingCreating">

 

    CONTENT HERE....

</

 

telerik:RadAjaxPanel>

 


** When I click a link that causes an ajax request (postback), the progress indicator (RadAjaxLoadingPanel) does not appear. When I view it in the IE Developer Toolbar, the DISPLAY setting is "NONE". Is there something I'm missing so that it will trigger the appearance of the RadAjaxLoadingPanel on an Ajax Request (regular get/post requests also)?

Thank You!!
0
Accepted
Pavlina
Telerik team
answered on 01 Jul 2011, 03:36 PM
Hello Nathan,

Attached to this message is a sample runnable application which demonstrates how you can achieve the desired functionality. Please examine it and let me know if you need additional assistance.

Regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Nathan
Top achievements
Rank 2
answered on 13 Jul 2011, 03:41 PM
Thanks for your response. This helped me get it to work, but I still have one issue with the loading panel image. When I set EnableSkinTransparency="false", the image appears, but when set to "True" it displays as a blank square in the middle of the page. I thought it was the z-index, but changing this did not help. The problem is that when set to "False", the loading image is also transparent. Any suggestions? I would like for the loading image to appear as normal in the center of the page.

EnableSkinTransparency="false"
** Every loads as expected except the loading image is dimmed like the background. I would like the loading image to appear as normal (not dimmed).

EnableSkinTransparency="true"
** The page dims as expected, but the loading image in the center does not appear. Instead, there is a blank square in the center of the page.
----------------------------------------------------------------------------------------------------
<style type="text/css">
.RadAjax_Default .raDiv   
{
    background-image:url('../../images/loading.gif');
    z-index:99999999;
}

.RadAjax_Default .raColor 
{
    background-color:#8b9162;
}
</style>    

// Setting to True causes blank square instead of image!
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" ZIndex="999999999" Transparency="65" Skin="Default"
EnableSkinTransparency="True">     
</telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
         ASP.NET Wizard Control....
</telerik:RadAjaxPanel>
----------------------------------------------------------------------------------------------------

Thanks!
0
Nathan
Top achievements
Rank 2
answered on 13 Jul 2011, 03:51 PM
As previously posted, inside my Ajax panel I have a wizard control. When clicking the Wizard step links it causes the loading panel to appear as expected, but after 10 or so clicks, the loading panel stops working and I'm unable to click the links. If I close the application and restart, it works for about 10 or so clicks. It seems as if all controls that generate ajax requests stop working (like the application can no longer submit ajax requests).

Any suggestions?
0
Maria Ilieva
Telerik team
answered on 18 Jul 2011, 03:29 PM
Hello Nathan,

Regarding the EnableSkinTransparency  problem you are facing with the RadAjaxLoadingPanel I was not able to replicate it locally in a very simple application. Please find the test project attached and let me know what the difference in your case is.
As to the second issue you have about LoadingPanel stops working after several clicks I would suggest you to debug the application and ensure that no error is thrown before this behaviour to appear. Also please ensure that each Ajax request started after the previous one completely finishes.


Kind regards,
Maria Ilieva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Nathan
Top achievements
Rank 2
answered on 18 Jul 2011, 07:51 PM
Can I use the RadAjaxLoadingPanel for pages that are not using Ajax? I would like to show the animation during regular requests as well.

Thanks!
0
Maria Ilieva
Telerik team
answered on 21 Jul 2011, 12:05 PM
Hello Nathan,

Yes, you could use RadAjaxLoadingPanel on regular postbacks by using its client-side show() and hide() methods. Please refer to the following online demo which represents such scenario.
I hope this helps.

All the best,
Maria Ilieva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Ajax
Asked by
Nathan
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Nathan
Top achievements
Rank 2
Maria Ilieva
Telerik team
Share this question
or