Declined
Last Updated: 27 Dec 2019 13:54 by ADMIN
vladan strigo
Created on: 26 Jan 2015 11:38
Category: Grid
Type: Feature Request
4
Grid new row validation when in-cell edit mode
We have a problem when working with grid in batch edit mode which puts different fields in the In cell edit mode.

The problem is that cell that are not edited (for example you create a new row, edit only the first field, press save) are never validated. This is of course because they never went into edit mode, so the control and validation was never rendered.

Please give us a feature for such scenario.
6 comments
ADMIN
Preslav
Posted on: 01 May 2019 10:01
Hello Ranga,

The only possible solution to have a validation on unedited cells is to edit them via JavaScript during the saveChanges event handler manually.

For example, check this page:
Please note that having multiple validation tooltips is not possible. Thus, the first non-valid cell will end the cycle.


Regards,
Preslav
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Ranga
Posted on: 24 Apr 2019 11:45

Hi Team,

We have the same need as mentioned in the previous comments, "to enable validation in the unedited cells", when trying to work in bulk mode save/update, in the kendo grid react wrapper.

Also we would need to know how to insert validation  message / comment in the specific cells on bulk validation, on clicking the save all button. We are able to still know which row is added / modified, using the dirty flag.

Could you please suggest possible measures to achieve this.

 

Imported User
Posted on: 28 Mar 2016 15:47
Hello,

I noticed the same issue as Vladan. A solution can be validate all the rows which have the flag dirty when the user clicks on the save button, or something like that.
ADMIN
Telerik Admin
Posted on: 27 Jan 2015 08:59
Another solution would be to switch all cells in the newly inserted row to validate them, before the row is added to the grid source. I can't think of other way to validate non-editable cells data, let me know if you do. 
vladan strigo
Posted on: 26 Jan 2015 14:29
Thank you for your suggestion, but unfortunately it's not it :(

For example for the field date of birth...I cannot set default value because it in reality does not exist, it just must be entered.


ADMIN
Telerik Admin
Posted on: 26 Jan 2015 12:23
Thanks for the proposal, Vladan. At this point you may consider setting default values for the newly added rows, as illustrated here:
http://demos.telerik.com/kendo-ui/grid/editing