Calling AsyncUpload from custom button?

7 posts, 1 answers
  1. RJ
    RJ avatar
    389 posts
    Member since:
    Oct 2006

    Posted 02 Sep 2016 Link to this post

    Hi All,

    I wanted to hide the default AsyncUpload button and call it using my custom button. The loading of file will still show once its called by my button.

    My custom buttons is just <a href.. with  FontAwesome.

    <a href="#" onclick="callUpload(); return false;" ><i class="fa fa-camera large" title="Change Photo"></i></a>

    Any code for JavaScript that can call the AsyncUpload click?

     

    Thanks in advance,

    RJ

     

     

  2. RJ
    RJ avatar
    389 posts
    Member since:
    Oct 2006

    Posted 04 Sep 2016 in reply to RJ Link to this post

    function callUpload() {
      var upload = $find('<%=AsyncUpload1.ClientID %>');
      upload.click();
    }
    This doesn't work

    but it works using asp:FileUpload....

    what is the method or property for AsyncUpload?

     

     

  3. RJ
    RJ avatar
    389 posts
    Member since:
    Oct 2006

    Posted 05 Sep 2016 in reply to RJ Link to this post

    Any workaround?
  4. RJ
    RJ avatar
    389 posts
    Member since:
    Oct 2006

    Posted 15 Sep 2016 Link to this post

    function callUpload() {
     
      var upload = $find('<%=AsyncUpload1.ClientID %>');
     
      upload.-->property/method to call click????
     
    }
  5. RJ
    RJ avatar
    389 posts
    Member since:
    Oct 2006

    Posted 28 Sep 2016 in reply to RJ Link to this post

    ?  :(
  6. Answer
    Anton
    Admin
    Anton avatar
    81 posts

    Posted 30 Sep 2016 Link to this post

    Hi,

    You can check on the following forum thread.

    Regards,
    Anton
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  7. RJ
    RJ avatar
    389 posts
    Member since:
    Oct 2006

    Posted 04 Oct 2016 in reply to Anton Link to this post

    Thanks a lot Anton!
Back to Top