| Support Center

(Back to Website)

Support Center

Frequently Asked Questions

Last Updated: Dec 30, 2012 09:03PM PKT
Q)  How to debug no records (blank grid)?
Few considerations before use 
1)  include the jqgrid_dist.php file before any thing rendered to output.
2)  Check the ajax response of grid,
Use firefox->firebug->net->ajax-call of grid->response
You will see the output there, in case of any error. It should be proper JSON format data in order to render grid
Q)  How can I set the width in this grid, i do not want to set screen size width but custom width size
You need to set following params:
$grid["autofilter"] = false;
$grid["width"] = "600"; // defaults to 900
If you dont specify the width property, it will be the sum of all columns width.
Q) How can i integrate PHPGrid in MVC based frameworks like Codeignoitor, Zend, CakePHP and others.
To integrate in MVC, You can divide code in 2 sections. And put first in controller and pass the $out variable to view, where you can render it with rest of JS/CSS files.
$g = new jqgrid();
$out = $g->render("list1");
<link rel="stylesheet" type="text/css" media="screen" href="js/themes/redmond/jquery-ui.custom.css"></link> 
<link rel="stylesheet" type="text/css" media="screen" href="js/jqgrid/css/ui.jqgrid.css"></link> 
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jqgrid/js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script src="js/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script> 
<script src="js/themes/jquery-ui.custom.min.js" type="text/javascript"></script>
<div style="margin:10px">
<?php echo $out?>
Q)  Change height of cell
 Inspect the cell using firebug, and check its class
.ui-jqgrid tr.jqgrow td { ... }
You can apply padding-top, padding-bottom in it to see effect.
Q) What documentation is available with package?
The documentation is one on web, then we have many working examples of almost all features  with inline commented docs. 
If still there is an issue in understanding, live email and chat support and remote session support is also there.
We also have a support center that provide resolution of many frequent concerns.
You will also have 1 month of refund claim policy, which is actually very rare in our customers.
Please consider one more fact, this is generic grid and provide customizations of user interface to an extent. So if you are willing to do some major playground in features ... ask before buying.
Q) How can i get IDs of the selected rows of grid?
on client side, you can have ids in this way.
var selr = jQuery('#grid').jqGrid('
getGridParam','selrow'); // returns null if no row is selected  (single row)
// array of id's of the selected rows when multiselect options is true. Empty array if not selection 
var selr = jQuery('#grid').jqGrid('getGridParam','selarrrow'); 
Q) How can i set the width of 'Actions' column?
You can also customize the width of that column,
# Customization of Action column width and other properties
$col = array();
$col["title"] = "Action";
$col["name"] = "act";
$col["width"] = "50";
$cols[] = $col;
This work when you define grid columns manually and pass to this function.
Otherwise, it will distribute all columns with equal width.
// pass the cooked columns to grid
Q) How can i use custom data formatter with column?
You can use it in following manner, e.g.
in php code ...
$col = array();
$col["title"] = "Closed";
$col["name"] = "closed";
$col["width"] = "50";
$col["editable"] = true;
$col["edittype"] = "checkbox"; // render as checkbox
$col["editoptions"] = array("value"=>"1:0"); // with these values "checked_value:unchecked_value"
$col["formatter"] = "function(cellvalue, options, rowObject){ return cboxFormatter(cellvalue, options, rowObject);}";
and in html ...
function cboxFormatter(cellvalue, options, rowObject)
return '<input type="checkbox" name="itemid[]" value="'+options.rowId+'" onclick="test('+options.rowId+',this.checked);"/> '+cellvalue;
<div style="margin:10px">
<?php echo $out?>
Q) How to load grid based on $_POST data from other page?
The grid is loaded with 2 server calls.
1) load the columns of grid.
2) do an ajax call, to load data of grid.
Now, if you want to pass data from external form, it is available for step1. But not there in 2nd ajax call, as it is not posted.
Solution is to put the POST variable in session and use it from session for step2.
if (!empty($_POST["personid"]))
$_SESSION["personid"] = $_POST["personid"];
and use $_SESSION["personid"] in your SQL.

Contact Us

  • Post a Public Question
  • Email Us
  • Live Chat!
  • Ask the Community


    • Paste complete code that is involved in your question. You can use pastebin.com to share code link.

    Screenshots or Online link of webpage is helpful in resolution. You can also send email at address mentioned below.

    • To report an issue, Write steps to regenerate the case.

    • For email support or live chat, Use gridphp@gmail.com and add it in Google Chat.
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found