I am trying to get the CustomValidator to work with the RadAsyncUpload, but not having any luck.
I have tried the example from here http://www.telerik.com/community/forums/aspnet-ajax/async-upload/required-validator-and-radasyncupload.aspx but the javascript never fires. What links the 2 controls togther? Normally I would set the ControlToValidate property of the CustomValidator, but that also does not work.
I have simplified the example (Should always fail validataion), but still no luck
I have tried the example from here http://www.telerik.com/community/forums/aspnet-ajax/async-upload/required-validator-and-radasyncupload.aspx but the javascript never fires. What links the 2 controls togther? Normally I would set the ControlToValidate property of the CustomValidator, but that also does not work.
I have simplified the example (Should always fail validataion), but still no luck
<
script
type
=
"text/javascript"
>
function validateUpload(sender, args) {
args.IsValid = false;
}
</
script
>
<
div
>
<
tel:RadAsyncUpload
ID
=
"RadAsyncUpload1"
runat
=
"server"
MultipleFileSelection
=
"Automatic"
/>
<
asp:CustomValidator
runat
=
"server"
ID
=
"CustomValidator"
ClientValidationFunction
=
"validateUpload"
ErrorMessage
=
"Select at least a single file"
/>
</
div
>