Problem with Cancel button

2 posts, 0 answers
  1. Hans
    Hans avatar
    15 posts
    Member since:
    Oct 2007

    Posted 07 Apr 2014 Link to this post


    I have a problem with your RadAsyncUpload.

    When a download a large file, I disable my save button. But, if I cancel my download, how to enable my save button ?

    I use this even

    $telerik.$(".ruCancel").on('click', function() {

    for dectect the cancel button click, but if I use RadAsyncUpload
    when download 2 large file simultaneous, If I cancel my first file, my save
    button is enable, but the second file has not finished to downloading. 

    Are you an event to detect the cancel button ? I use
    OnClientFileUploadedFailed but is not fired when I cancel my download.

    I check your demo, and this link

    but it’s not works.

    Browser used : IE9, Chrome, Firefox.


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 08 Apr 2014 in reply to Hans Link to this post

    Hi Hans,

    There is no event in RadAsyncUpload which will fire when the cancel button is clicked. Please try the following sample code snippet to achieve your scenario.

    <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" MultipleFileSelection="Automatic"
        OnClientFileUploading="OnClientFileUploading" OnClientFilesSelected="OnClientFilesSelected">
    <telerik:RadButton ID="RadButton1" runat="server" Text="Save">

    <script type="text/javascript">
        var selectedFiles;
        function OnClientFilesSelected(sender, args) {
            selectedFiles = args.get_count();
        function OnClientFileUploading(sender, args) {
            var btn = $find("<%=RadButton1.ClientID %>");
            $telerik.$(".ruCancel").on('click', function (e) {
                if (selectedFiles == 0)

  3. DevCraft R3 2016 release webinar banner
Back to Top