How to clear RadAsyncUpload files?

3 posts, 0 answers
  1. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 24 Sep 2010 Link to this post

    how to clear RadAsyncUpload files which is hosted in Jquery UI dialog on clientside?

     

            // clears the radasync upload

            function ClearFileInput() {

                var upload = $find("<%= rauMailingDocument.ClientID %>");           

                if (upload._uploadedFiles.length > 0) {

                    Array.removeAt(upload._uploadedFiles, 0);

                    upload.deleteFileInputAt(0);

                    upload.updateClientState();

                }  

            }

    Edit:  Update, the above seems to work, is that the preferred method?

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 30 Sep 2010 Link to this post

    Hello Lenny_shp,

    It depends what exactly you want to achieve. You can also try using the upload.clearFileInputAt(0).


    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Esteban
    Esteban avatar
    3 posts
    Member since:
    Apr 2012

    Posted 01 May 2012 Link to this post

    This worked for me. I inserted the jquery below in a close window function. I have the radasyncupload control in a radwindow

    $("input[name=RowRemove]").each(function() {
          $(this).click();
    });
Back to Top