Hi Telerik,
I want to access the textbox of asyncupload in javascript. I was trying with the onclientfileselected event handler and there I got the getFileinputField() function but on debugging I am getting a null value. Here is the code I wrote.
<script type="text/javascript">
function fileselectedhandler(sender, eventArgs)
{
var inputfield=eventArgs.getInputField();
}
</script>
I am not getting any JS error.
Thanks and Regards,
Jane
I want to access the textbox of asyncupload in javascript. I was trying with the onclientfileselected event handler and there I got the getFileinputField() function but on debugging I am getting a null value. Here is the code I wrote.
<script type="text/javascript">
function fileselectedhandler(sender, eventArgs)
{
var inputfield=eventArgs.getInputField();
}
</script>
I am not getting any JS error.
Thanks and Regards,
Jane
5 Answers, 1 is accepted
0
A2H
Top achievements
Rank 1
answered on 13 Aug 2013, 07:30 PM
Hi Jane,
Please try the below implementation to access the textbox.
Thanks,
A2H
Please try the below implementation to access the textbox.
function
fileselectedhandler(sender, eventArgs) {
var
inputfield = eventArgs.get_fileInputField();
alert(inputfield.value);
}
Thanks,
A2H
0
Accepted
Shinu
Top achievements
Rank 2
answered on 14 Aug 2013, 03:44 AM
Hi Jane,
This is a known issue and to fix this you have to set DisablePlugins property of RadAsyncUpload to true and add the following style.
CSS:
Thanks,
Shinu.
This is a known issue and to fix this you have to set DisablePlugins property of RadAsyncUpload to true and add the following style.
CSS:
#thumbnail img
{
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);
}
Thanks,
Shinu.
0
Jane
Top achievements
Rank 1
answered on 15 Aug 2013, 10:00 AM
Got it working shinu thanks
0
Jane
Top achievements
Rank 1
answered on 20 Aug 2013, 11:41 AM
Hi shinu
I am hiding the select button. Instead I want to display Click here to select files text inside the textbox. Please help.
I am hiding the select button. Instead I want to display Click here to select files text inside the textbox. Please help.
0
Shinu
Top achievements
Rank 2
answered on 20 Aug 2013, 12:21 PM
Hi Jane,
Please try the following JavaScript.
JavaScript:
Thanks,
Shinu.
Please try the following JavaScript.
JavaScript:
<script type=
"text/javascript"
>
function
pageLoad() {
var
$ = $telerik.$;
$(
'.ruFakeInput.radPreventDecorate'
).val(
"Click here to select files"
);
}
</script>
Thanks,
Shinu.