Trigger Upload events (from outside the component)

3 posts, 0 answers
  1. Peter Vandenborre
    Peter Vandenborre avatar
    8 posts
    Member since:
    Mar 2010

    Posted 18 Mar 2010 Link to this post

    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. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 18 Mar 2010 Link to this post

    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.
  3. DevCraft banner
  4. Peter Vandenborre
    Peter Vandenborre avatar
    8 posts
    Member since:
    Mar 2010

    Posted 18 Mar 2010 Link to this post

    Many thanks, this was exactly what I was looking for!
Back to Top