This is a migrated thread and some comments may be shown as answers.
How to identify the cancel button click in RadProgressArea control
6 Answers 43 Views
This is a migrated thread and some comments may be shown as answers.
Divya
Top achievements
Rank 1
Divya asked on 04 Jan 2011, 01:15 PM
Hi,

I need a way to find out whether i have clicked the Cancel button inside the RadProgressArea control. I need to invoke a custom functionality in the
OnClientProgressUpdating() event whenever cancel button is clicked.  I would like to know how this can be achieved. Code Snippets are given.

<telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="true" ToolTip="workign" OnClientProgressUpdating="clientProgressUpdating" />                               

 function clientProgressUpdating( progressArea, eventArgs)
  {
             // Identify if cancel button is clicked.
            {
            // Perform my own custom functionality
             }
   }

Thanks,
Divya

6 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 21 Apr 2016, 01:01 PM

Same question.

Also, is there server side event after clicking "cancel" button?

 

0
David
Top achievements
Rank 1
answered on 25 Apr 2016, 08:22 PM
Any suggestions?
0
Ivan Danchev
Telerik team
answered on 26 Apr 2016, 07:05 AM
Hello David,

It is not possible to check whether the Cancel button is clicked, because the OnClientProgressBarUpdating event will not fire after clicking it, unless the progress monitoring starts anew.

A server event for the Cancel button click is not available.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
David
Top achievements
Rank 1
answered on 26 Apr 2016, 12:33 PM

It is a little surprising

Thank you

0
Ivan Danchev
Telerik team
answered on 28 Apr 2016, 08:02 AM
Hello David,

The following approach using jQuery could be a possible workaround:
function clientProgressUpdating(sender, args) {
    $(".ruCancel").click(function () {
        //custom logic
    });
}

Your logic has to be placed in the function inside the click method, because as I mentioned clicking on the cancel button will stop the progress updating and any additional logic inside the clientProgressUpdating handler will not be executed.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
David
Top achievements
Rank 1
answered on 28 Apr 2016, 11:56 AM

That makes perfect sense!

Thank you

Asked by
Divya
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or