how do enable and disable RadCloudUpload control in javascript?

3 posts, 0 answers
  1. rinu
    rinu avatar
    15 posts
    Member since:
    Jun 2010

    Posted 09 Dec 2014 Link to this post

    Hi All,

    Here is the scenario, only one file should be uploaded at a time and as soon as you upload the file you need to disable the RadCloudUpload button to upload till the upload is finished you can enable the button back when the uploading is finished. 

    and how do i clear the file list panel?

    Is there any chance that we can do it in javascript?

    Regards
    Rinu
  2. rinu
    rinu avatar
    15 posts
    Member since:
    Jun 2010

    Posted 09 Dec 2014 in reply to rinu Link to this post

    Hi i manged to find solution for my first question from the documentation 

    function manageEnabledState(value) {
    var cloudUpload = $find("<%= RadCloudUpload1.ClientID %>");
    cloudUpload.set_enabled(value);
    }

    but the second question still remains.

    how do i clear the file list panel using java script?



  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 12 Dec 2014 Link to this post

    Hi,

    You can use jQuery to remove any element from the file list:
    $('.rcuList > li:first').remove()

    I hope this helps.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top