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

How to clear the File List panel and upload file count on Upload Failure

1 Answer 78 Views
CloudUpload
This is a migrated thread and some comments may be shown as answers.
Phani
Top achievements
Rank 1
Phani asked on 27 Jun 2015, 11:05 AM

Dear Team,

We are using CloudUpload Control and restricted the file size and type. On validation failed we are displaying an alert to the user. 

Is it possible to manually clear the File List Panel Items and Upload File Count using Javascript?  I tried to remove by using the below lines but count is not getting cleared. Please suggest.

  $('.rcuList > li').remove()
   $(".rcuFileList").find("ul").remove();

 

Thanks in advance

Phani.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 01 Jul 2015, 02:11 PM
Hello Phani,

You can still use the approach that you have demonstrated :

$('.rcuList > li').remove()
$(".rcuFileList").find("ul").remove();

In addition, you can use the rcuUploadedFiles and rcuTotalFiles classes to manage the count in a preferable manner again using jQuery.
e.g:

$(".rcuUploadedFiles").html("2")


Regards,
Nencho
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
CloudUpload
Asked by
Phani
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or