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

RadAsyncUpload Clear Items using Serverside Code

1 Answer 339 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Liby George
Top achievements
Rank 1
Liby George asked on 10 Oct 2014, 02:22 PM
I am using RadAsyncUpload to upload files. I have a 'Cancel' button which the user can click anytime after selecting the files (see the attached image). I want to clear the selected files - or in other words reset the RadAsyncUpload Control when 'Cancel' button is clicked. I am doing some other checks when this button is clicked so I don't want to do this on client side. Please advice. 

Thanks

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 15 Oct 2014, 07:08 AM
Hello,

Please include the following line of code in your click handler for the "Cancel" button.
//JavaScript
$telerik.$(".ruInputs li .ruRemove").click()

This will go through the files <li> elements and click on the "Remove" link.

Regards,
Boyan Dimitrov
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
AsyncUpload
Asked by
Liby George
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or