Delete Item after upload

2 posts, 0 answers
  1. Sean
    Sean avatar
    6 posts
    Member since:
    Nov 2011

    Posted 12 Jan 2012 Link to this post

    Hi,

    How can i delete the file name after it's uploaded? I was thinking to add the uploaded items to a grid and let the user know what files are uploaded and if they can remove them. with the current functionality of Cancel button which clears the list , user doesnt know whats uploaded before.

    I'm not sure if its the right solution but if so, then how can i delete the file name from the list automatically after it's uploaded? I know there is an event called FileUploded with FileUploadedEventArgs but i dont know how to remove it from the list.

    Thanks

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 17 Jan 2012 Link to this post

    Hi Sean,

     You can use the Items collection of the RadUpload like so:

    private void RadUpload_FileUploaded(object sender, Telerik.Windows.Controls.FileUploadedEventArgs e)
            {
                Dispatcher.BeginInvoke(()=>
                this.RadUpload.Items.Clear());
            }
    The Dispatcher ensures that there will be enough time for the progress bar to collapse too. 
    Please let us know if this is suitable for you.

    Regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top