Pages

Monday, November 23, 2009

Adding a cancel event to the Telerik RadUpload control

I came up with the following to fire a function when the RadUpload cancel button is pressed. Replace alert('cancel pressed') as required.

<telerik:radprogressarea id="progressArea1" runat="server" />
    var cancelButton = $find('<%= progressArea1.ClientID %>')._findElement("CancelButton");
    $addHandlers(cancelButton, { "click": function() { alert('cancel pressed') } }, this);

1 comment:

  1. Thanks, this is just what I needed. It's lame that Telerik hasn't seen fit to try and make the Cancel button in the RadProgressArea do more than emulate clicking the browser's Stop button.

    ReplyDelete