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

Trigger Upload events (from outside the component)

2 Answers 50 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Peter Vandenborre
Top achievements
Rank 1
Peter Vandenborre asked on 18 Mar 2010, 01:33 PM
Hello,

I want to use the telerik upload component, but in stead of the component button "Upload" a button outside of this component must be used. I've managed to hide this button so far, but now I'm wondering how I can trigger the FileUploadStarted event using my own button.

Is this possible and how would I go about implementing this?

Best regards,

Peter

2 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 18 Mar 2010, 03:04 PM
Hello Peter,

Thank you for contacting us.

You can start the upload via the StartUpload method like in the code below:
 
private void YourPrivateCode()
{
    this.RadOploadControl1.StartUpload();
}
 
If you have other questions please drop us a line.

Sincerely yours,
Ivan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Peter Vandenborre
Top achievements
Rank 1
answered on 18 Mar 2010, 04:45 PM
Many thanks, this was exactly what I was looking for!
Tags
Upload
Asked by
Peter Vandenborre
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Peter Vandenborre
Top achievements
Rank 1
Share this question
or