Skip to content

Instantly share code, notes, and snippets.

View gridphp's full-sized avatar

Abu gridphp

View GitHub Profile
@gridphp
gridphp / gist:de278f42b435ac82e027719e5025a4bd
Last active June 14, 2020 20:07
ondblclick demo - hide in list, show in edit - https://www.gridphp.com
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
@gridphp
gridphp / gist:329b0505065d67c00b810f5b65ac173f
Last active June 14, 2020 20:07
Dblclick on parent grid, not subgrid. - https://www.gridphp.com
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
include_once("../../config.php");
@gridphp
gridphp / select2.php
Last active June 14, 2020 20:07
Select2 - disable specific option - https://www.gridphp.com
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
@gridphp
gridphp / gist:47676de482ae8af348c7196270b2ecb3
Last active June 14, 2020 20:07
Export selected across pages (state persistance) - https://www.gridphp.com
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
@gridphp
gridphp / gist:70e96ee4f0225e2a6af2f76b672b2abf
Last active June 14, 2020 20:07
PHPExcel sample excel output of array ($arr) - https://www.gridphp.com
include_once(dirname(__FILE__).'/excel/PHPExcel/IOFactory.php');
$objPHPExcel = new PHPExcel();
// autosize excel columns
foreach(range('A','Z') as $columnID)
$objPHPExcel->getActiveSheet()->getColumnDimension($columnID)->setAutoSize(true);
$objPHPExcel->getActiveSheet()->fromArray($arr, NULL, 'A1');
// write excel2007 standard xlsx
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
@gridphp
gridphp / gist:8fed7ed3758d336e61f29632ac945551
Last active June 14, 2020 20:06
PHPExcel custom callback function - https://www.gridphp.com
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config
@gridphp
gridphp / export.php
Last active June 14, 2020 20:06
Export Row data (JSPDF) - https://www.gridphp.com
<?php
/**
* PHP Grid Component
*
* @author Abu Ghufran <gridphp@gmail.com> - http://www.phpgrid.org
* @version 2.0.0
* @license: see license.txt included in package
*/
// include db config