Is there an event that triggers when Item is removed from selected files list, before upload, by clicking on X button.
I am creating a Thumbnail gallery in FilesSelected event handler, and I want to remove thumbnails when an item (file) is removed from the selected list.
Thanks,
Alex
3 Answers, 1 is accepted
0
Ivan
Telerik team
answered on 15 Sep 2009, 04:30 PM
Hello Alex,
Thank you for your interest in the RadUpload control.
The current version does not fire an ItemDeleted event. In order to respect the item deletion you should implement a timer (DispatcherTimer) and on its Tick event to check the count of the uploader's items. Below is a sample code:
int countUploadItems = 0;
DispatcherTimer myTimer;
...
this.myTimer = new System.Windows.Threading.DispatcherTimer();
Has there been any changes to this in later versions?
0
Alex Fidanov
Telerik team
answered on 18 Feb 2011, 09:23 AM
Hello Joanna,
Currently, the RadUploadItem exposes the PreviewDelete and Delete routed events. The PreviewDelete event can be handled if you want to stop the item from being removed. Please note that these events are raised when the item is deleted through the UI (with the delete button of the RadUploadItem).