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

Is there an event thrown when a file is removed from the upload queue?

1 Answer 57 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 06 Feb 2012, 08:33 PM
Is there an event thrown when a file is removed from the upload queue?

I need to know when a file is removed from the RadUpload panel's list of files-to-be-uploaded. Is this possible? I would imagine there must be an event to handle this. If not, then it may be a show-stopper.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 09 Feb 2012, 10:58 AM
Hi Mike,

The RadUploadItems expose PreviewDelete and Delete events. You can attach an event handler to both in C# code behind like this:
public MainPage()
{
    InitializeComponent();
 
    RadUpload1.AddHandler(RadUploadItem.DeleteEvent, new DeleteEventHandler(OnDelete));
    RadUpload1.AddHandler(RadUploadItem.PreviewDeleteEvent, new DeleteEventHandler(PreviewDelete));
}
 
void PreviewDelete(object sender, DeleteEventArgs e)
{
             
}
 
void OnDelete(object sender, DeleteEventArgs e)
{
            
}

You can find more information about the events here. Give this a try and let me know if it helps.

Greetings,
Tina Stancheva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Upload
Asked by
Mike
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or