I am slightly embarrased about asking for help on something so basic and probably obvious, but could you please tell me how to clear the list of Selected Files programmatically.
Obviously the user does not want to see the last files he uploaded each time the RadUpload is made visible to him.
6 Answers, 1 is accepted
Many thanks for your quick response.
Your suggestion was almost perfect.
The list of Selected Files were certainly cleared, but the Total bar, showing the number of bytes previously downloaded is still visible.
Could I once again take advantage of your kindness and ask how to clear this bar as well.
You can use the CancelUpload method.
It clears the currently selected files but also will cancel any ongoing upload, so you can call it when no upload is going on to clear the items.
Otherwise the Items.Clear() should also hide the total progress bar. Thanks for bringing our attention to this, it has been logged as an issue.
the Telerik team
CancelUpload() did exactly what I wanted :-)
Many thanks for your extremely quick reply.
e.UploadData.FileName if so i want to cancel the upload (or just give the option for user via RadConfirm messagebox) on FileUploadStarting event i tried to do this using (sender as RadUpload).CancelUpload() this error out the Application Any solution for this Thanks a lot
Have you tried using the Validate event of the RadUploadItem? It is raised for every RadUploadItem before uploading it. You can choose to cancel or not the item and it will not be uploaded. You can subscribe to this event either with the EventManager class or with AddHandler method.
the Telerik team