Fire Select button on page load

Thread is closed for posting
2 posts, 0 answers
  1. Dave
    Dave avatar
    3 posts
    Member since:
    Jun 2007

    Posted 15 Oct 2008 Link to this post

    Can you tell me how to fire the select button on page load?  I would like to have the file browse window appear right away when the page loads without the user having to click the select button.

    I have attempted to add to the onclientadded handler with no luck.  I am trying to configure a simple one file upload within a window control.

    Seems like a simple task not sure why I am having so much trouble with it.

  2. Erjan Gavalji
    Erjan Gavalji avatar
    1455 posts

    Posted 16 Oct 2008 Link to this post

    Hi Dave,

    Here is a copy of my post to your support ticket:

    To my regret, due to browser restrictions, the programmatic call of the browse dialog of a file input would further prevent the selected file from being uploaded. What I mean is that you can call the file input's click() method to open the Browse dialog. However, using this approach, when you submit the form you would either get an "Access is denied" error, or you would end up with the file input cleared and the page not submitted depending on the type f button you click to submit the form.

    You can implement some kind of a workaround by allowing your users to submit the form only if they have selected a file.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top