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
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
0
David
Top achievements
Rank 1
Iron
Iron
Veteran
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
Iron
Iron
Veteran
answered on 25 Apr 2016, 08:22 PM
Any suggestions?
0
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
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
Iron
Iron
Veteran
answered on 26 Apr 2016, 12:33 PM
It is a little surprising
Thank you
0
Hello David,
The following approach using jQuery could be a possible workaround:
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
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
Iron
Iron
Veteran
answered on 28 Apr 2016, 11:56 AM
That makes perfect sense!
Thank you