Errors box pops up with simple phpgrid code since this is my first use. The error box only states error and then lists the data from the database at the bottom of the box in red.
This usually happens when there is a white spaces before the grid->render() function. it must be called before any thing is sent to output. The output of ajax call must be json without spaces. check faq for more.
Can you explain? Where should I be looking for white spaces?
Also my page is set up as such
sample phpgrid code from site with my info
The grid comes up on the page with the proper column titles from the database but then the error window pops up.
Grid code consist of 2 parts.
1) PHP Side
$g = new jqgrid();
$out = $g->render("list1");
2) HTML Side
<?php echo $phpgrid_output?>
Now the PHP side code must be plugged before any header output or html. You can place 2nd part where you wish to display grid.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?