Hi support,
I am getting "Invalid language tag error" when i select the time in chrome browser while using kendo TimepickerFor. Error image is attached and below is my code.
My model class:
[RequiredIf("MONDAY", true, ErrorMessage = "Required")]
public DateTime? MONDAY_FROM_TIME { get; set; }
[RequiredIf("MONDAY", true, ErrorMessage = "Required")]
public DateTime? MONDAY_TO_TIME { get; set; }
Partial page:
@(Html.Kendo().TimePickerFor(h => h.HIRE_FLEET_AVAILIABILITY.MONDAY_FROM_TIME)
.Format("hh:mm tt")
.Interval(15)
.Enable(Model != null ? Model.HIRE_FLEET_AVAILIABILITY.MONDAY : false)
.HtmlAttributes(new { @style = "width:100px" }))
@(Html.Kendo().TimePickerFor(h => h.HIRE_FLEET_AVAILIABILITY.MONDAY_TO_TIME)
.Format("HH:mm")
.Interval(15)
.Enable(Model != null ? Model.HIRE_FLEET_AVAILIABILITY.MONDAY : false)
.HtmlAttributes(new { @style = "width:100px" }))
I am getting "Invalid language tag error" when i select the time in chrome browser while using kendo TimepickerFor. Error image is attached and below is my code.
My model class:
[RequiredIf("MONDAY", true, ErrorMessage = "Required")]
public DateTime? MONDAY_FROM_TIME { get; set; }
[RequiredIf("MONDAY", true, ErrorMessage = "Required")]
public DateTime? MONDAY_TO_TIME { get; set; }
Partial page:
@(Html.Kendo().TimePickerFor(h => h.HIRE_FLEET_AVAILIABILITY.MONDAY_FROM_TIME)
.Format("hh:mm tt")
.Interval(15)
.Enable(Model != null ? Model.HIRE_FLEET_AVAILIABILITY.MONDAY : false)
.HtmlAttributes(new { @style = "width:100px" }))
@(Html.Kendo().TimePickerFor(h => h.HIRE_FLEET_AVAILIABILITY.MONDAY_TO_TIME)
.Format("HH:mm")
.Interval(15)
.Enable(Model != null ? Model.HIRE_FLEET_AVAILIABILITY.MONDAY : false)
.HtmlAttributes(new { @style = "width:100px" }))