Hello,
Am using the RadAsyncUpload. On OnClientValidationFailed am calling validationFailed script. But it doesn't show the message.Instead Something blinking near the file name. Kindly suggest
Note : Am using a Dropzone which is our requirement.
Thank you
My Code :
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
function validationFailed(sender, eventArgs) {
$(".ErrorHolder").append("<p>Validation failed for '" + eventArgs.get_fileName() + "'.</p>").fadeIn("slow");
}
</script>
<style type="text/css" runat="server">
.DropZone1
{
width: 300px;
height: 90px;
background-color:white;
border-color: #CCCCCC;
color: #767676;
float: left;
text-align: center;
font-size: 16px;
color: white;
}
.qsf-demo-canvas h2 {
margin: -10px -10px 10px;
padding: .25em 40px;
color: #ffffff;
background: #ff6b2b url("img/header-bg.gif") 15px center no-repeat;
}
</style>
</head>
<body style="background-color:#505D66">
<form id="form1" runat="server">
<table>
<tr>
<td>
<div id="div1" class="qsf-demo-canvas">
<h2>Upload files</h2>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" MultipleFileSelection="Automatic" AllowedFileExtensions="jpg" OnClientValidationFailed="validationFailed" DropZones=".DropZone1"></telerik:RadAsyncUpload>
<div class="DropZone1">
<p style="color:black">Drop Files Here</p>
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
Am using the RadAsyncUpload. On OnClientValidationFailed am calling validationFailed script. But it doesn't show the message.Instead Something blinking near the file name. Kindly suggest
Note : Am using a Dropzone which is our requirement.
Thank you
My Code :
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
function validationFailed(sender, eventArgs) {
$(".ErrorHolder").append("<p>Validation failed for '" + eventArgs.get_fileName() + "'.</p>").fadeIn("slow");
}
</script>
<style type="text/css" runat="server">
.DropZone1
{
width: 300px;
height: 90px;
background-color:white;
border-color: #CCCCCC;
color: #767676;
float: left;
text-align: center;
font-size: 16px;
color: white;
}
.qsf-demo-canvas h2 {
margin: -10px -10px 10px;
padding: .25em 40px;
color: #ffffff;
background: #ff6b2b url("img/header-bg.gif") 15px center no-repeat;
}
</style>
</head>
<body style="background-color:#505D66">
<form id="form1" runat="server">
<table>
<tr>
<td>
<div id="div1" class="qsf-demo-canvas">
<h2>Upload files</h2>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" MultipleFileSelection="Automatic" AllowedFileExtensions="jpg" OnClientValidationFailed="validationFailed" DropZones=".DropZone1"></telerik:RadAsyncUpload>
<div class="DropZone1">
<p style="color:black">Drop Files Here</p>
</div>
</td>
</tr>
</table>
</form>
</body>
</html>