This is a migrated thread and some comments may be shown as answers.

Display custom validation error msg

3 Answers 74 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Raji
Top achievements
Rank 1
Raji asked on 17 Feb 2012, 12:45 AM
Hi,

I am using AsyncUpload and have set the MaxFileSize property to 20mb, now I want to validate the filesize and display an error message next to the contol. to check the filesize. The control shows red dot next to file saying that validation failed but I would like to display a custom error message. Is it possible?

Thanks,
Raji

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Feb 2012, 05:51 AM
Hello,

Check the following demo.
Upload / Validation

Thanks,
Princy.
0
Raji
Top achievements
Rank 1
answered on 18 Feb 2012, 01:39 AM
I got it to work but after I remove the document the message stays there. How to remove or hide the message.
0
Dimitar Terziev
Telerik team
answered on 22 Feb 2012, 01:02 PM
Hello Raji,

I've prepared a sample page based on the demo which Princy has pointed, showing how to remove the validation message.

Greetings,
Dimitar Terziev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
AsyncUpload
Asked by
Raji
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Raji
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or