KoolGrid - Powerful PHP GridKoolGrid - Powerful PHP Grid FullVersion 5.3.0.1 released on 06/12/2015

Validation - Insert/Edit Validation

*Note: When editing or inserting row, you may test putting non-integer to CustomerNumber field or leave other input fields empty.
CustomerNumber 
CustomerName 
Phone 
City 
 
129
Mini Wheels Co.
6505555787
San Francisco
131
Land of Toys Inc.
2125557818
NYC
141
Euro+ Shopping Channel
555 94 44
Madrid
144
Volvo Model Replicas, Co
0921-12 3555
Luleå
145
Danish Wholesale Imports
31 12 3555
Kobenhavn
146
Saveley & Henriot, Co.
78.32.5555
Lyon
151
Muscle Machine Inc
2125557413
NYC
157
Diecast Classics Inc.
2155551555
Allentown
161
Technics Stores Inc.
6505556809
Burlingame
166
Handji Gifts& Co
+65 224 1555
Singapore
Page 1 in 12, items 1 to 10 of 113.
* Note:Generate your own grid with Code Generator

Description & Sample code

This example shows you how to add validator to grid column. The validator will ensure the input from user is correct before doing data operation task. In above example, we have used RequiredFieldValidator and RegularExpressionValidator. The RequiredFieldValidator make sure that input from user is not empty. And the RegularExpressionValidator helps to ensure the input for customerNumber is integer.

Together with above two validators, there are other two validators: RangeValidator and CustomValidator, all cover full range of grid input validation.

Spend Less, Code Few, Deliver HUGE !!!

Take your time to experience the power of KoolPHPSuite with full-functional & time-unlimited trial version.
Download your KoolPHPSuite trial and start your development with suite examples and the help of documentation and forums.
To acquire suite license, please visit our purchase page.
If you have any questions, do not hesitate to contact us at sales@koolphp.net.