Using AsyncUpload that previews images via a radlistview before user selects final upload (also allowing image removal)
Using the following javascript to delete all file inputs so as not to show the normal message upon file selection:
Have also added client side validation as per this great demo: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/validation/defaultvb.aspx
All works well accept that the error messages will only appear if user is only uploading one or many files that are all invalid. When using multiple file upload if one of the files is valid, the function mentioned above with deleteAllFileInputs appears to remove the files with error messages as well (by design, I'd imagine).
I'd obviously like the user to see the files with error messages only.
Is there any way to limit deleteAllFileInputs to just the validated files?
Thanks
Glenn
Using the following javascript to delete all file inputs so as not to show the normal message upon file selection:
function
filesUploaded(sender, args) {$find(
"<%= RadAjaxPanel1.ClientID%>"
).ajaxRequest() sender.deleteAllFileInputs();
//cleans up any not removed from fileuploaded }
Have also added client side validation as per this great demo: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/validation/defaultvb.aspx
All works well accept that the error messages will only appear if user is only uploading one or many files that are all invalid. When using multiple file upload if one of the files is valid, the function mentioned above with deleteAllFileInputs appears to remove the files with error messages as well (by design, I'd imagine).
I'd obviously like the user to see the files with error messages only.
Is there any way to limit deleteAllFileInputs to just the validated files?
Thanks
Glenn