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

Validation when saving

2 Answers 865 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 18 Mar 2016, 07:44 AM

Hello,

I noticed that the grid doesn't perform validation when the user click on the save button, when the grid has incell editing activated. The validation only occurs when the user modifies one cell.
If you create a new row and then click the save button, you save the row without validation.

You can see the problem here, just add row and then click save:
http://dojo.telerik.com/UNIgi

look at the field "productName".

There is any way to solve this?

Thank you.

2 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 22 Mar 2016, 08:52 AM
Hello Juan Jose,

The described undesired behavior is a limitation of the validation, caused by the fact that the validation in batch mode editing is an UI instead of data item validation.

To make sure all fields are validated you can either use "incell" edit mode, or handle the save event and perform the desired validation in the corresponding function.

You can also request a new feature via our user voice platform:

http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback

Regards,
Dimiter Topalov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Fernando
Top achievements
Rank 1
answered on 28 Mar 2016, 11:54 AM

Hello Dimiter,

first thank you for your reply. I can't use the "incell" edit mode on this scenario, so I will handle the save event in order to get the desired behaviour.

Tags
Grid
Asked by
Fernando
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Fernando
Top achievements
Rank 1
Share this question
or