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

Delete Item after upload

1 Answer 52 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 12 Jan 2012, 04:45 PM
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

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 17 Jan 2012, 10:36 AM
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 >>

Tags
Upload
Asked by
Sean
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or