Hi Jairo,
The reason for this behavior is the fact that by adding a new row, a new data record is inserted in the dataSource. Thus, no validation is applied there. Once inserted, the
editCell or
editRow method is invoked. In this case,
editCell is invoked due to the
incell editable configuration of the Grid and only the first cell is opened.
Further, to overcome this, I would suggest using one of the following approaches:
- Enable inline editing mode:
- set defaultValue in the schema.model.fields. For example:
Finally, more information about the validator is available in this section:
I hope this helps.
Regards,
Preslav
Progress Telerik