No, i had to work arround it. when i save the grid i have to first edit it in the java service code to remove all events before saving it to the database.
The code i use to do that is as follows
public void saveGrid(String grid, String user, String report) {
System.out.println(“>>>GridServiceImpl.saveGrid”);
// strip out all grid events (e.g. onSelectRow, onPaging, gridComplete
int i = grid.indexOf(“onSelectRow”);
int j = grid.indexOf(“onSortCol”) – 1;
grid = grid.substring(0, i) + “onSelectRow”:null,” + grid.substring(j) ;
i = grid.indexOf(“onPaging”);
j = grid.indexOf(“onSelectAll”) – 1;
grid = grid.substring(0, i) + “onPaging”:null,” + grid.substring(j) ;
i = grid.indexOf(“gridComplete”);
j = grid.indexOf(“loadError”) – 1;
grid = grid.substring(0, i) + “gridComplete”:null,” + grid.substring(j) ;
System.out.println(grid);
try {
Model.perform(“saveGrid”, new Object[] {user, report, grid });
} catch (Exception e) {
e.printStackTrace();
}
}