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

Show LoadingPanel using ajaxRequest

3 Answers 133 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Giorgio
Top achievements
Rank 1
Giorgio asked on 12 Feb 2009, 05:09 PM
Hi,

when I use ajaxRequest function on javascript, i'm not able to show a loading panel over the page.
It's possible to do this?

My code is something like this:

javascript
    function ToolbarButtonClick(sender, args){
        var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
        ajaxManager.ajaxRequest("test");
    }

aspx
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="20"
                BackColor="#E0E0E0">
                <table style="width: 100%; height: 100%;">
                    <tr style="height: 100%">
                        <td align="center" valign="middle" style="width: 100%">
                            <asp:Image ID="Image1" runat="server" AlternateText="Loading..." BorderWidth="0px"
                                ImageUrl="../img/Misc/Loading.gif" />
                        </td>
                    </tr>
                </table>
            </telerik:RadAjaxLoadingPanel>

            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            </telerik:RadAjaxManager>


Thanks
Giorgio.

3 Answers, 1 is accepted

Sort by
0
SamJ
Top achievements
Rank 1
answered on 13 Feb 2009, 06:06 AM
Hi Giorgio,

Do you have setting in you ajax manager ajax settings where the RadAjaxManager is set as initiator? If so, then the loading panel should be displayed over the updated control.  If you can paste here the manager ajax settings would help.

Otherwise you can try explicitly show/hide the loading panel as here.
0
Giorgio
Top achievements
Rank 1
answered on 13 Feb 2009, 11:02 AM
No, I don't have any setting in RadAjaxManager, that's because I use ajaxManager.ajaxRequest("").
The link to explicitly show/hide the loading panel works well.
So It seems that ajaxRequest function does't show the loading panel. It's right?

Thanks.
Giorgio.

0
Accepted
SamJ
Top achievements
Rank 1
answered on 13 Feb 2009, 03:09 PM
Hi,

Yes, the loading panel won't show in this case. Note that RadAjaxLoadingPanel is made to be shown over the updated via ajax control, e.g. this control set as updated one in the ajax setting pair.
However, it is good that the other solution helped.

Regards,
SamJ
Tags
Ajax
Asked by
Giorgio
Top achievements
Rank 1
Answers by
SamJ
Top achievements
Rank 1
Giorgio
Top achievements
Rank 1
Share this question
or