This is a migrated thread and some comments may be shown as answers.

TimePicker error in Chrome

1 Answer 66 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
saroj
Top achievements
Rank 1
saroj asked on 04 Jun 2013, 11:16 PM
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" }))
       

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 06 Jun 2013, 12:06 PM
Hello Saroj,

I am not sure what might cause such error and I am not able to reproduce it on my side.

Could you please check the attached project modify it so it reproduces it and send it back so we can investigate further the case?

Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Date/Time Pickers
Asked by
saroj
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or