Display Value from URL Querystring Parameter

Assuming you have a query string named “foo”, e.g.
http://www.example.com/phpGrid/examples/virtual_column.php?foo=bar

The following code snippet displays the $_GET['foo']:

$dg->add_column('total', array('name'=>'total', 'index'=>'total', 'width'=>'360', 'align'=>'right', 'sortable'=>false,
'formatter'=>'function(cellvalue, options, rowObject){return \''. $_GET['foo'] .'\';}'),
'Total (Virtual)’);



Feedback and Knowledge Base