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

Hiding RadAjaxLoadingPanel explicitly issue

1 Answer 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 02 May 2019, 06:31 PM

I am trying to show/hide a RadAjaxLoadingPanel explicitly. I am using a RadAjaxPanel (want to try avoiding having to change my page to use a RadAjaxManager instead). I have set the ClientEvents-OnRequestStart="RequestStart" ClientEvents-OnResponseEnd="ResponseEnd" for my RadAjaxPanel. 

<telerik:RadCodeBlock ID="RadCodeBlock" runat="server">
        <script type="text/javascript">
            var currentLoadingPanel = null;
            var currentUpdatedControl = null;
 
            function RequestStart(sender, args) {
                currentLoadingPanel = $find("<%= RadLoadingPanel1.ClientID %>");
 
                if (args.get_eventTarget() == "<%= btnGo.UniqueID %>") {
                    currentUpdatedControl = "<%= RadAjaxPanel1.ClientID %>";
                }
                //show the loading panel over the updated control
                currentLoadingPanel.show(currentUpdatedControl);
            }
 
            function ResponseEnd() {
                //hide the loading panel and clean up the global variables
                if (currentLoadingPanel != null)
                    currentLoadingPanel.hide(currentUpdatedControl);
                currentUpdatedControl = null;
                currentLoadingPanel = null;
            }
        </script>
    </telerik:RadCodeBlock>

 

ResponseStart() and ResponseEnd() are called properly, but the loading panel does not hide when currentLoadingPanel.hide(currentUpdatedControl) is called. The loading panel just stays there forever. This is what my loading panel looks like.

<telerik:RadAjaxLoadingPanel ID="RadLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 07 May 2019, 10:31 AM
Hello Joseph,

Can you please: 

Best regards,

Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Joseph
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or