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
0
RJ
Top achievements
Rank 1
answered on 04 Sep 2016, 04:04 PM
function callUpload() {
var upload = $find('<%=AsyncUpload1.ClientID %>');
upload.click();
}
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
Hi,
You can check on the following forum thread.
Regards,
Anton
Telerik by Progress
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!