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

RadAjaxLoadingPanel causing AJAX controls to disappear during AJAX postbacks

6 Answers 232 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
apb
Top achievements
Rank 1
apb asked on 19 Nov 2008, 11:33 PM
Hi,

Whenever I put a RadAjaxLoadingPanel on my form and set it to be used by either a RadAjaxPanel or RadAjaxManager, it causes the controls within the panel or or those managed by the manager to disappear during AJAX postbacks (they reappear when it is complete).

I've tried playing with the transparency, size, positioning, etc. Nothing makes any difference.

What am I doing wrong? This can't be the intended behavior.

-Al

6 Answers, 1 is accepted

Sort by
0
Accepted
Kevin Babcock
Top achievements
Rank 1
answered on 20 Nov 2008, 07:50 AM
Hello Al,

You are correct, usually the RadAjaxLoadingPanel does not cause all of the controls within the RadAjaxPanel to disappear. It wraps its content in a hidden <div>, and then shows the <div> and moves it over the panel when it is activated. If the content of the RadAjaxLoadingPanel is not transparent, it will block out the controls underneath it. You can set the Transparency property to make the content transparent, as you probably already know. By default, a simple "Loading" gif is used as the sole content of the RadAjaxLoadingPane. Can you post the markup for your RadAjaxLoadingPanel? Perhaps it can help me figure out why yours is not working as you'd like.

Regards,
Kevin Babcock
0
apb
Top achievements
Rank 1
answered on 04 Dec 2008, 04:05 PM
Thanks. It was the transparancy.
0
Kevin Babcock
Top achievements
Rank 1
answered on 04 Dec 2008, 09:39 PM
No problem. I'm glad you were able to solve your issue.

Regards,
Kevin Babcock
0
sebastien Dubos
Top achievements
Rank 1
answered on 18 Feb 2010, 02:50 PM
Hi All,

I'm in front of a strange problem with RadAjaxLoadingPanel and a radgrid. Everything is fine on the first update, my RadAjaxLoadingPanel is displayed with some transparency. But I notice that if I'm doing update fiew times, the  RadAjaxLoadingPanel become more and more white. And at the end the transparency is gone.

It looks like is using 50% transparency on the first update. Then 25% on the 25% at the second update etc...

Any idea
Sebastien Dubos

<telerik:RadAjaxManager ID="RadAjaxManagerTasks" runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting> 
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGridTasks" LoadingPanelID="RadAjaxLoadingPanelTasks" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelTasks" runat="server" Transparency="25" 
    BackColor="Silver" HorizontalAlign="Center"
    <table> 
        <tr> 
            <td valign="bottom" height="100px"
                <asp:Image ID="imgTasksLoader" runat="server" ImageUrl="~/ECDCImages/Internet Icon/ajax-loader.gif" /> 
            </td> 
        </tr> 
    </table> 
</telerik:RadAjaxLoadingPanel> 

0
Dimo
Telerik team
answered on 18 Feb 2010, 03:04 PM
Hello Sebastien,

The provided code snippet does not cause the described issue. The problem must be somewhere else - can you send a runnable demo?

By the way, the AjaxSetting should have an AjaxControlID set. Currently this setting does not do anything.

<telerik:AjaxSetting AjaxControlID="RadGridTasks">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGridTasks" LoadingPanelID="RadAjaxLoadingPanelTasks" />
            </UpdatedControls>
        </telerik:AjaxSetting>


Regards,
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.
0
Kevin Babcock
Top achievements
Rank 1
answered on 18 Feb 2010, 04:24 PM
Are you programatically displaying the RadAjaxLoadingPanel, or is it possible that multiple controls could be firing off requests before previous requests have returned? Also, have you verified that the loading panel is being disabled correctly when it is no longer needed? I've seen the behavior you describe when I accidentally enabled the RadAjaxLoadingPanel more than once at a time. If your loading panel is not set to static, then the loading panel DOM element(s) is actually copied every time it is displayed and moved on top of the elements it is meant to hide. If you have transparency turned on and then enable the RadAjaxLoadingPanel more than once, you'll get several layers of the loading panel on top of one another, resulting in what looks like less and less transparency.

I hope that helps.
Tags
Ajax
Asked by
apb
Top achievements
Rank 1
Answers by
Kevin Babcock
Top achievements
Rank 1
apb
Top achievements
Rank 1
sebastien Dubos
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or