KoolGrid - Powerful PHP GridKoolGrid - Powerful PHP Grid FullVersion 5.1.0.1 released on 05/22/2014

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 
 
103
Atelier graphique
40.32.2555
Nantes
112
Signal Gift Stores
7025551838
Las Vegas
114
Australian Collectors, Co.
03 9520 4555
Melbourne
119
La Rochelle Gifts
40.67.8555
Nantes
121
Baane Mini Imports
07-98 9555
Stavern
124
Mini Gifts Distributors Ltd.
4155551450
San Rafael
125
Havel & Zbyszek Co
(26) 642-7555
Warszawa
128
Blauer See Auto, Co.
+49 69 66 90 2555
Frankfurt
129
Mini Wheels Co.
6505555787
San Francisco
131
Land of Toys Inc.
2125557818
NYC
Page 1 in 13, items 1 to 10 of 122.
* 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.