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

2 posts, 0 answers
  1. Mike
    Mike avatar
    5 posts
    Member since:
    Feb 2011

    Posted 06 Feb 2012 Link to this post

    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.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 09 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top