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

Display RadAjaxLoadingPanel on more than asp:panel on the same page

7 Answers 76 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
AAA
Top achievements
Rank 1
AAA asked on 04 Dec 2013, 09:44 PM
Is it possible to display the RadAjaxLoadingPanel on more than one control on the same page?

In my project, I have an asp:panel called pnlContent and the html code is:  

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">    
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlContent" />
            </UpdatedControls>
        </telerik:AjaxSetting>
         
        <telerik:AjaxSetting AjaxControlID="btnVerifyUser">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlContent" LoadingPanelID="RadAjaxLoading" />
            </UpdatedControls>
        </telerik:AjaxSetting>
 
        <telerik:AjaxSetting AjaxControlID="btnAssignUserToGroup">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlContent" />
            </UpdatedControls>
        </telerik:AjaxSetting>
 
        <telerik:AjaxSetting AjaxControlID="btnProcessExcel">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlExcelProcess" LoadingPanelID="RadAjaxLoading" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnVerifyExcelRecords">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlExcelProcess" LoadingPanelID="RadAjaxLoading" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

I can see the LoadingPanel in pnlContent, when btnAssignUserToGroup is clicked, but I can't see it in pnlExcelProcess.

How can I see the LoadingPanel when btnVerifyExcelRecords or btnProcessExcel is clicked?

7 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Dec 2013, 04:17 AM
Hi AAA,

Please try to set the LoadingPanelID of 'btnAssignUserToGroup' to 'RadAjaxLoading' and AjaxUpdatedControl ID to 'pnlExcelProcess'. Please have a look into the complete code snippet which works fine at my end.

ASPX:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlContent" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnVerifyUser">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlContent" LoadingPanelID="RadAjaxLoading" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnAssignUserToGroup">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlExcelProcess" LoadingPanelID="RadAjaxLoading" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnProcessExcel">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlExcelProcess" LoadingPanelID="RadAjaxLoading" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnVerifyExcelRecords">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlExcelProcess" LoadingPanelID="RadAjaxLoading" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoading" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>
<telerik:RadButton ID="btnVerifyUser" runat="server" Text="btnVerifyUser" OnClick="btnVerifyUser_Click">
</telerik:RadButton>
<asp:Panel ID="pnlContent" runat="server" Height="50px">
    pnlContent
</asp:Panel>
<telerik:RadButton ID="btnProcessExcel" runat="server" Text="btnProcessExcel" OnClick="btnProcessExcel_Click">
</telerik:RadButton>
<asp:Panel ID="pnlExcelProcess" runat="server" Height="50px">
    pnlExcelProcess
</asp:Panel>
<telerik:RadButton ID="btnVerifyExcelRecords" runat="server" Text="btnVerifyExcelRecords"
    OnClick="btnVerifyExcelRecords_Click">
</telerik:RadButton>
<br />
<telerik:RadButton ID="btnAssignUserToGroup" runat="server" Text="btnAssignUserToGroup"
    OnClick="btnAssignUserToGroup_Click">
</telerik:RadButton>

Thanks,
Princy.
0
AAA
Top achievements
Rank 1
answered on 06 Dec 2013, 02:14 PM
Princy, thanks for your response. I think your code works, but only in IE. It does not work i Chrome or Firefox.
0
Maria Ilieva
Telerik team
answered on 09 Dec 2013, 01:12 PM
Hi,

Try setting the LoadingPanel as DefaultLoadingPanelID for all RadAjaxManager settings like this:
<telerik:RadAjaxManager ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoading" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlContent" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnVerifyUser">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlContent" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnAssignUserToGroup">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlExcelProcess"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnProcessExcel">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlExcelProcess"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnVerifyExcelRecords">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlExcelProcess"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoading" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>



Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
AAA
Top achievements
Rank 1
answered on 09 Dec 2013, 01:48 PM
Maria, I still cannot see it in Chrome.
0
Maria Ilieva
Telerik team
answered on 12 Dec 2013, 10:35 AM
Hello,

Can you please try to specify width and height for the updated Panels on the page and verify if this helps?

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
AAA
Top achievements
Rank 1
answered on 12 Dec 2013, 02:02 PM
Maria, that did not help :(
0
Maria Ilieva
Telerik team
answered on 17 Dec 2013, 11:00 AM
Hello,

In case non of the previous provided suggestions help I would suggest you to try show and hide the RadAjaxLoadingPanel manually on the client. See the help topic below for more information on this matter:
http://www.telerik.com/help/aspnet-ajax/ajax-show-hide-loadingpanel.html

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Ajax
Asked by
AAA
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
AAA
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or