Grid with required date field

2 posts, 0 answers
  1. Itai
    Itai avatar
    34 posts
    Member since:
    Feb 2016

    Posted 29 Mar 2016 Link to this post

    I'm trying to get a grid with a date field that must have a value. I have set the schema field validation to "required: true", but the grid still happily saved with nothing in the date field. 

    How to I get the grid to disallow saving if there is no value in the date field? (I don't need to set a range for the date, just make sure it is there). 

     

    Here is my attempt: http://dojo.telerik.com/aWAxO/2

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 31 Mar 2016 Link to this post

    Hello Itai,

     

    In order to make this field required the input element should have required attribute. Please refer to the http://dojo.telerik.com/aWAxO/4 example. 

     

    Regards,
    Boyan Dimitrov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top