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

File Upload control Validation message in ASP.NET MVC

1 Answer 369 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Quest Resource Management
Top achievements
Rank 1
Quest Resource Management asked on 03 Jan 2013, 12:31 PM
Hi,

I want to display Custom Validation message for Kendo File upload control used in my ASp.Net MVC project. Currently, Kendo generates validation message using my model property and don't use [Required] attribute used for that property.
for example:
If my property is something like below:
 [Display(Name = "Document: ")]
 [Required(ErrorMessage = "Please Select Document to upload")]
 public System.Web.HttpPostedFileBase UploadedFile { get; set; }

Then UI displays validation message like "UploadedFile is required." but I want to display message as "Please Select Document to upload"

Please suggest me a proper way to display my custom validation message.

I am using Kendo for MVC with version 2012.2.913.340

Thanks,

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 07 Jan 2013, 11:27 AM
Hello,

The Validation documentation shows how to use a custom validation message.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
Quest Resource Management
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or