Hello to all.
I'd like to validate a field, for example the standard Title field in an Calendar Event.
The validation works well in the BASIC example:
http://demos.telerik.com/aspnet-mvc/scheduler/index
I added the [Required] attribute on the Model.
Anyway in my code, the generated HTML code doesn't have the "required" attribute end not any validation is performed.
Someone can help me please?
4 Answers, 1 is accepted
I tried to reproduce the described behavior on our side but to no avail - the validation is expected after adding the "Required" annotation attribute. Could you please check the attached project and let me know how it differs from your real setup?
Regards,
Vladimir Iliev
Telerik

This is a GOOD SUPPORT!
(at the moment I'm really happy witho your products/supports).
So the porblem was: use a nullabel int instead an int :-)
So
[Display(Name = "Stanza/Locale")]
//[Required(AllowEmptyStrings = true, ErrorMessage = "xxx")]
public int? RoomID { get; set; }
instead of
[Display(Name = "Stanza/Locale")]
//[Required(AllowEmptyStrings = true, ErrorMessage = "xxx")]
public int RoomID { get; set; }

I'm glad that the demo help you.
Also please note that the posts does not support editing currently in order to keep valid history of the support conversation.
Regards,
Vladimir Iliev
Telerik