This question is locked. New answers and comments are not allowed.
I am using Date control in telerik grid on editing.
[DataType(DataType.Date)]
[Required(ErrorMessageResourceType = typeof(VRS.Resources.Sales), ErrorMessageResourceName = "Required")]
public DateTime EndMonth { get; set; }
When i click insert button on telerik grid it automatically create my user control on that property. I am facing problem when user select the date from date picker and then he can modifiy the date by altering the date in that picker and after that he click the insert button then my model value takes min date i.e., 1/1/1
but what i need is if date is improper then my insert function not to execute.
Thanks in advance.
[DataType(DataType.Date)]
[Required(ErrorMessageResourceType = typeof(VRS.Resources.Sales), ErrorMessageResourceName = "Required")]
public DateTime EndMonth { get; set; }
When i click insert button on telerik grid it automatically create my user control on that property. I am facing problem when user select the date from date picker and then he can modifiy the date by altering the date in that picker and after that he click the insert button then my model value takes min date i.e., 1/1/1
but what i need is if date is improper then my insert function not to execute.
Thanks in advance.