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

Calling AsyncUpload from custom button?

6 Answers 150 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
RJ
Top achievements
Rank 1
RJ asked on 02 Sep 2016, 08:02 PM

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

 

 

6 Answers, 1 is accepted

Sort by
0
RJ
Top achievements
Rank 1
answered on 04 Sep 2016, 04:04 PM

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?

 

 

0
RJ
Top achievements
Rank 1
answered on 05 Sep 2016, 08:18 PM
Any workaround?
0
RJ
Top achievements
Rank 1
answered on 15 Sep 2016, 07:17 PM
function callUpload() {
 
  var upload = $find('<%=AsyncUpload1.ClientID %>');
 
  upload.-->property/method to call click????
 
}
0
RJ
Top achievements
Rank 1
answered on 28 Sep 2016, 07:25 PM
?  :(
0
Accepted
Anton
Telerik team
answered on 30 Sep 2016, 08:37 AM
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.
0
RJ
Top achievements
Rank 1
answered on 04 Oct 2016, 09:11 PM
Thanks a lot Anton!
Tags
AsyncUpload
Asked by
RJ
Top achievements
Rank 1
Answers by
RJ
Top achievements
Rank 1
Anton
Telerik team
Share this question
or