EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: kg on February 16, 2016, 08:44:36 PM



Title: How to serverside validation in CRUD DataGrid
Post by: kg on February 16, 2016, 08:44:36 PM
Hi All,

when I input student ID to CRUD DataGrid (add/update) record  studentID field.
how to serverside validation studentID field?

thank you very much!


Title: Re: How to serverside validation in CRUD DataGrid
Post by: stworthy on February 17, 2016, 01:59:13 AM
In your server side, return the error message with 'isError' set to true when validation fails.
Code:
//server side code
echo json_encode(array(
'isError' => true,
'msg' => 'error message.'
));