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

After RadAjaxLoadingPanel stops , display confirmation message.

1 Answer 65 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Aamir
Top achievements
Rank 1
Aamir asked on 12 Feb 2013, 09:50 PM
I have a textbox and a button inside an RadAjaxPanel. When I click the button RadAjaxLoadingPanel is displayed and button click event is fired. But now I want to display a confirmation message that button was clicked or just display any message after RadAjaxLoadingPanel stops.

1 Answer, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 13 Feb 2013, 06:19 PM
Hi Aamir, 

It sounds like you don't know how to trigger an event when the RadAjaxLoadingPanel dissapears. There is a good example on Telerik's site here. If you scroll down to the code, you will see the RadCodeBlock with javascript functions controlling the RadAjaxLoadingPanel's behavior:

function ResponseEnd() {
                //hide the loading panel and clean up the global variables
                if (currentLoadingPanel != null) {
                    currentLoadingPanel.hide(currentUpdatedControl);
                    //here is where you would want to add a message or alert
                    //that the panel is hidden
  
                }
                currentUpdatedControl = null;
                currentLoadingPanel = null;
                if ($get("<%= Button1.ClientID %>").disabled) {
                    $get("<%= Button1.ClientID %>").disabled = false;
                }
            }


Hopefully this helps,
Master Chief
Tags
Ajax
Asked by
Aamir
Top achievements
Rank 1
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Share this question
or