Virtual Happy Hour is canceled this month (March) due to Good Friday.
Virtual Happy Hour is canceled this month (March) due to Good Friday.
EPiServer.CMS.UI 7.12.0
Sep 10, 2014
Oct 08, 2014
Falcon/CMS/Edit UI/Editing
Closed, Fixed and Tested
Add a DateTime property to a page type model.
Make it use the DateTimeNowEditor and make it required:
[Required]
[ClientEditor(ClientEditingClass = "epi-cms/contentediting/DateTimeNowEditor")]
public virtual DateTime MyDate { get; set; }
Edit a page that is an instance of the page type model.
Give the new property a value.
Clear the value.
Expected: To get client side validation.
Actual: No client side validation. See attached image where you can see two required properties. One with working client side validation and a DateTimeNowEditor.
Dev note: _ValueRequiredMixin uses this.value when validating. this.value on DateTimeNowEditor contains a value (wrong) but this.get("value") does not (correct).