My MVC model has some child classes:
public class WorkOrderModel
{
public DateTime? End_Dt{ get; set; }
public TimeLogDTO New_Time_Log { get; set; }
}
If I try to bind SF's MVC controls to a property on the "root" level it works:
@Html.EJS().DateTimePickerFor(m => m.End_Dt).Render()
However, if I try to bind it to a child class property, it just doesn;t bind anything on submit.
@Html.EJS().DateTimePickerFor(m => m.New_Time_Log.End_Dt).Render()
This same sample works with regular MVC controls.
What am I missing?