Display custom validation error msg

4 posts, 0 answers
  1. Raji
    Raji avatar
    56 posts
    Member since:
    Jul 2011

    Posted 16 Feb 2012 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 16 Feb 2012 Link to this post

    Hello,

    Check the following demo.
    Upload / Validation

    Thanks,
    Princy.
  3. Raji
    Raji avatar
    56 posts
    Member since:
    Jul 2011

    Posted 17 Feb 2012 Link to this post

    I got it to work but after I remove the document the message stays there. How to remove or hide the message.
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 22 Feb 2012 Link to this post

    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 >>
Back to Top