I am updated my project to utilize the RadAsynchUpload control and cannot get the FileUploaded event to fire. I am using the control in two places, one just a page with an upload button and the other inside of a RadGrid. Everything is working fine in the RadGrid. I am able to select the file and then click the update button, where it is firing off the FileUploaded event. For some reason, this is not working in the standalone sense. I can't seem to understand what I'm missing.
<
telerik:RadAsyncUpload
ID
=
"radAsyncUpload"
runat
=
"server"
EnableInlineProgress
=
"true"
MaxFileInputsCount
=
"1"
OnClientFileUploaded
=
"onClientFileUploaded"
OnClientFileUploadRemoved
=
"onClientFileUploadRemoved"
PostbackTriggers
=
"radUpload"
/>
<
telerik:RadButton
ID
=
"radUpload"
runat
=
"server"
Text
=
"Upload"
Enabled
=
"false"
CausesValidation
=
"false"
/>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function onClientFileUploaded(sender, args) {
var radUpload = $find("<%=radUpload.ClientID %>");
radUpload.set_enabled(true);
}
function onClientFileUploadRemoved(sender, args) {
var radUpload = $find("<%=radUpload.ClientID %>");
radUpload.set_enabled(false);
}
</
script
>
</
telerik:RadScriptBlock
>