Direct this is not supported, but it can be simulated. We will use the property oper in case a data is added/updated/deleted. Note the automatic disabling at end of if
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
....
// When a add is performed
if($grid->oper=='add')
$data=jqGridUtils::Strip($_POST);
// use insert data
$ret=$grid->insert($data);
if($ret){// success
// do something with your own function
}else{
// do something with your own function
}
// disable automatic add
$grid->add=false;
}
// the same for update
if($grid->oper=='edit')
$data=jqGridUtils::Strip($_POST);
// Make the conversion manually using jqGrid parse date