This is a migrated thread and some comments may be shown as answers.

how do enable and disable RadCloudUpload control in javascript?

2 Answers 116 Views
CloudUpload
This is a migrated thread and some comments may be shown as answers.
rinu
Top achievements
Rank 1
rinu asked on 10 Dec 2014, 04:49 AM
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 Answers, 1 is accepted

Sort by
0
rinu
Top achievements
Rank 1
answered on 10 Dec 2014, 05:10 AM
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?



0
Hristo Valyavicharski
Telerik team
answered on 12 Dec 2014, 01:14 PM
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.

 
Tags
CloudUpload
Asked by
rinu
Top achievements
Rank 1
Answers by
rinu
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or