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

Required field not being enforced.

2 Answers 6 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shea
Top achievements
Rank 1
Shea asked on 30 Mar 2013, 04:52 PM
I have a grid with a mode. I have defined the required field in the model as such:
WorkTypeID: { type: "number", validation: { required: true } },
If don't set a value for the at field, I am still able to save. Is there a way I can prevent the user from saving without choosing a value for this field?

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 01 Apr 2013, 02:27 PM
Hello Shea,

I am afraid that the provided information is not sufficient enough in order to determine where exactly the problem comes from. Your field configuration looks OK. Are you by any chance using a custom editor or pop-up editor template? In such case, you should attach a "required" validation attribute to the corresponding input element manually.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Shea
Top achievements
Rank 1
answered on 22 Apr 2013, 03:48 PM
I am using an editor. That must be the culprit.
Tags
Grid
Asked by
Shea
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Shea
Top achievements
Rank 1
Share this question
or