Event called after "remove" button appears

2 posts, 0 answers
  1. Ian
    Ian avatar
    5 posts
    Member since:
    Jun 2012

    Posted 29 Jun 2012 Link to this post

    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?
  2. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 04 Jul 2012 Link to this post

    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.
Back to Top