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

Event called after "remove" button appears

1 Answer 61 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 29 Jun 2012, 04:28 PM
I'm working with a RadAsyncUpload control and currently have a javascript function attached to OnClientValidationFailed which pops up an alert with an error message.

At the time OnClientValidationFailed fires, there is a cancel button for the file that has called it rather than the remove button once it has failed validation.  Is there any event that can be captured after a file has failed and the remove button has replaced the cancel button?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 04 Jul 2012, 01:49 PM
Hello Ian,

 
You can trigger it as it is done in the code below with the updateCancelButton function:

function OnClientValidationFailed(sender, eventArgs) {
sender._updateCancelButton(eventArgs.get_row());
$telerik.$(".ruRemove", eventArgs.get_row()).click();
}

Hope this will be helpful.

All the best,
Plamen Zdravkov
the Telerik team
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 their blog feed now.
Tags
AsyncUpload
Asked by
Ian
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or