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

Grid with required date field

1 Answer 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Itai
Top achievements
Rank 1
Itai asked on 29 Mar 2016, 10:26 AM

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

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 31 Mar 2016, 07:36 AM

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!
 
Tags
Grid
Asked by
Itai
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or