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

Remove file - Client API

2 Answers 62 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Omer B
Top achievements
Rank 1
Omer B asked on 02 Apr 2014, 07:14 AM
Hi all
I've a  page with asp.net TreeView Control, and a form that contain multiple controls(combobox, textbox, datepicker, etc).
When i select a node from the Treeview, the page bis refreshed and the datasource that's connected to the form, assign the data from the database that is related to this selected node. (by using the Where parameter)
I have an RadAysncFileUpload Control in the form, and it been populated with the data from the database after selecting a node.
I want to know if it possible to remove the image so i can upload a different one, using Client API.
I know that i need to check the checkbox(with the file name next to him) and than submit the form, but i need it without submiting the entire form.

Thank you :)

2 Answers, 1 is accepted

Sort by
0
Omer B
Top achievements
Rank 1
answered on 03 Apr 2014, 08:04 AM
HI all
+1.
Anyone
?
0
Hristo Valyavicharski
Telerik team
answered on 04 Apr 2014, 01:07 PM
Hi Omer,

To remove all selected file from the AsyncUpload try to call deleteAllFileInputs() method of the asyncupload:

$find('AsyncUpload1').deleteAllFileInputs()

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
AsyncUpload
Asked by
Omer B
Top achievements
Rank 1
Answers by
Omer B
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or