custom events

Questionscustom events
META asked 10 years ago

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
Abu Ghufran answered 10 years ago

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.

vinh binh answered 9 years ago

I have a proplem as you. I think this proplem is i and you used a version free phpgrid. Free version phpgrid is not support Custom Events.

Your Answer

14 + 7 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?