Grid Editing / Validation

Double click grid row in order to put it in edit mode. The Person Name cannot be empty. The Age needs to be bigger than zero and Date of Bird cannot be null.



Theme

Description

This example demonstrates how the validation can be handled into the shieldui grid when editing is enabled. To validate field you need to use validator function of the datasource’s fields. Also each field have nullable property which can be set to true (its default value) or false. When the validation faild (user validation function returns undefined, or some not nullable field is set to null) the error event is triggered.

Was this example useful?