This question is locked. New answers and comments are not allowed.
I was using 2011.Q2.712~719.
I attempted to implement multi-language in my application. In localizing validation message, I met the issue.
I have a class which has annotation as below:
and I have a telerik mvc grid control to insert/edit this object. (tested in both client editing and server editing, same issue)
The "Required" attribute was working properly and show localized validation message based on culture setting in the runtime, but the "StringLength" attribute does not show localized message based on the culture setting in the runtime, it always shows "Please enter no more than 5 characters." in validation message.
I've made a test with "plain" controls came with Microsoft MVC Toolkit, It seems working fine on both attribute setting, so I suspect this is a bug of Telerik grid control.
Thanks,
Henry
I attempted to implement multi-language in my application. In localizing validation message, I met the issue.
I have a class which has annotation as below:
[MetadataType(typeof(WorkflowStatusMetaData))]public partial class WorkflowStatus{}public class WorkflowStatusMetaData{......
[Required(ErrorMessageResourceName = "Validation_Common_Required", ErrorMessageResourceType = typeof(CoreCulture))] [StringLength(5, ErrorMessageResourceName = "Validation_Common_StringLength", ErrorMessageResourceType = typeof(CoreCulture))] [Display(Name = "Status Name")] public object StatusName { get; set; }
......and I have a telerik mvc grid control to insert/edit this object. (tested in both client editing and server editing, same issue)
The "Required" attribute was working properly and show localized validation message based on culture setting in the runtime, but the "StringLength" attribute does not show localized message based on the culture setting in the runtime, it always shows "Please enter no more than 5 characters." in validation message.
I've made a test with "plain" controls came with Microsoft MVC Toolkit, It seems working fine on both attribute setting, so I suspect this is a bug of Telerik grid control.
Thanks,
Henry