I have one or two files uploaded on RadAsyncUpload control. I would like how to programmatically remove the item (Like clicking on red "Remove" link next to each file on the RadAsyncUpload control).
My scenario is that when user click "Process" button below, one or two file will be remove from the list.
Thanks,
Lamk.
My scenario is that when user click "Process" button below, one or two file will be remove from the list.
Thanks,
Lamk.
5 Answers, 1 is accepted
0
Accepted
Hi Lamkhoa,
You can use the deleteFileInputAt client side method -
http://www.telerik.com/help/aspnet-ajax/asyncupload-client-object.html
Regards,
Peter
the Telerik team
You can use the deleteFileInputAt client side method -
http://www.telerik.com/help/aspnet-ajax/asyncupload-client-object.html
Regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
LamKhoa
Top achievements
Rank 1
answered on 05 Aug 2011, 03:38 PM
Thanks, I got it now.
0
Bas
Top achievements
Rank 1
answered on 21 Feb 2014, 08:46 AM
Hello Peter,
From "You can use the deleteFileInputAt client side method -"
The method doesn't work in IE9 or lower, Can you please help me out?
Thanks
Bas
From "You can use the deleteFileInputAt client side method -"
The method doesn't work in IE9 or lower, Can you please help me out?
Thanks
Bas
0
Shinu
Top achievements
Rank 2
answered on 21 Feb 2014, 09:09 AM
Hi Bas,
Please have a look into the sample code snippet which works fine at my end.
ASPX:
JavaScript:
Please provide your code if it doesn't help.
Thanks,
Shinu.
Please have a look into the sample code snippet which works fine at my end.
ASPX:
<
telerik:RadAsyncUpload
ID
=
"RadAsyncUpload1"
runat
=
"server"
OnClientFileUploaded
=
"fileUploaded"
>
</
telerik:RadAsyncUpload
>
JavaScript:
<script type=
"text/javascript"
>
function
fileUploaded(sender, eventArgs) {
alert(sender.getUploadedFiles().length)
sender.deleteFileInputAt(0);
}
</script>
Please provide your code if it doesn't help.
Thanks,
Shinu.
0
Bas
Top achievements
Rank 1
answered on 06 Apr 2014, 12:17 PM
Hello Shinu,
After so long got a chance to review the older posts here. Thanks for your reply. I tried as per the sample provided by you and found that
"deleteFileInputAt" doesn't work at all in IE9 or below. But it works fine in IE10 , FF and Chrome. This seems like a known issue with the Telerik Rad Async upload control. But any ways thank you so much for your concern. Will get back to forum soon.
Thanks
Bas
After so long got a chance to review the older posts here. Thanks for your reply. I tried as per the sample provided by you and found that
"deleteFileInputAt" doesn't work at all in IE9 or below. But it works fine in IE10 , FF and Chrome. This seems like a known issue with the Telerik Rad Async upload control. But any ways thank you so much for your concern. Will get back to forum soon.
Thanks
Bas