I'm having trouble with custom events. Everything works fine but when I put the line "$grid->set_events($e);" the grid doesn't show, no error message, just a blank screen, I know that line is the problem because when I comment it the grid appears fine (without the custom events).
At first I thought it was an error with my app, but then I copy/pasted the code in this example:
http://www.phpgrid.org/demo/demos/editing/custom-events.phps
and it has the same problem.
2 Answers
Make sure $grid = new jqgrid(); — a jqgrid object.
If it is $g in your code, you should use $g->set_events($e);
This is convention issue in code sample which is planned to be fixed.
Your Answer