Disabling the file names above the async upload

2 posts, 0 answers
  1. Kunal Bagga
    Kunal Bagga avatar
    26 posts
    Member since:
    Oct 2008

    Posted 05 Nov 2013 Link to this post

    Hi Team, 
    I am working in RadAsyncUpload. My requirement is at a point of time I will upload only one file. While uploading the file I don't want other files to be selected or remove already selected file.

    Here, I wanted to either disable the whole file name that is displayed above the inlineprogress of upload control or disable the remove button associated to the file name. Also I have to disable the select button of the control when other files are uploading to the server. 

    When I use the following code when the file got selected

    document.getElementById("<%# RadAsyncUpload1.ClientID%>").Enabled = false;

    the whole control got disabled and the file is not getting uploaded. Hope you understand my question

    Thanks & Regards,
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Nov 2013 Link to this post

    Hi Kunal,

    Please have a look into the following code I tried to disable the control while uploading a file.

    <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" OnClientFileSelected="OnClientFileSelected"
        OnClientFileUploaded="OnClientFileUploaded" TargetFolder="~/Images/Img/" AllowedFileExtensions=".jpg,.zip"
        MaxFileSize="579371152" MultipleFileSelection="Automatic">

    <script type="text/javascript">
        function OnClientFileSelected(sender, args) {
        function OnClientFileUploaded(sender, args) {

  3. DevCraft R3 2016 release webinar banner
Back to Top