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

3 posts, 0 answers
  1. Nirav
    Nirav avatar
    17 posts
    Member since:
    Mar 2013

    Posted 10 Apr 2013 Link to this post

    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. Nirav
    Nirav avatar
    17 posts
    Member since:
    Mar 2013

    Posted 12 Apr 2013 Link to this post

    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.
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 12 Apr 2013 Link to this post

    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!
Back to Top