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

Non mandatory fields in IE8 becomes mandatory (IE9, Chrome it works fine)

2 Answers 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nirav
Top achievements
Rank 1
Nirav asked on 10 Apr 2013, 08:39 AM
Hi,

I have person details model and has address, city, state, postal code fields. Out of them the state and postal code are optional. I have not applied any external validations.
[Display(Name = "Address")]
[DataType(DataType.Text)]
[StringLength(200)]
[Required]
public string Address { get; set; }
 
[Display(Name = "State")]
[DataType(DataType.Text)]
[StringLength(100)]
public string State { get; set; }
 
[Display(Name = "Postal Code / Zip")]
[DataType(DataType.Text)]
[StringLength(10)]
public string ZipPostalCode { get; set; }

When I perform the add/edit operation through screen, i get address, state, postalcode are mandatory validation error in IE8. It works perfectly fine in IE9 and Chrome. I am using latest Kendo ASP.Net MVC build Q1 2013.

The same thing happens with my nullable foreign key. It excepts null value in IE9 and Chrome whereas gives validation error in IE8.

Thanks,
Nirav

2 Answers, 1 is accepted

Sort by
0
Nirav
Top achievements
Rank 1
answered on 12 Apr 2013, 06:48 AM
I am using IE10 browser. I get above mentioned error in document mode IE8.

Anyone have faced the same kind of issue then please update me.
0
Daniel
Telerik team
answered on 12 Apr 2013, 07:16 AM
Hi,

Using document mode IE8 in IE 10 is not the same as IE8 and the browser will return an unexpected result for the attributes. The validation will work as expected when used in Internet Explorer 8.

Kind regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Nirav
Top achievements
Rank 1
Answers by
Nirav
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or