column freeze Archives | phpGrid - PHP Datagrid Create PHP grids in minutes, not hours. Tue, 03 Dec 2024 18:30:14 +0000 en-US hourly 1 CodeProjecthttps://wordpress.org/?v=7.0.3 129966043 Column Freeze https://phpgrid.com/example/column-freeze/ Sat, 20 Apr 2013 22:20:08 +0000 http://phpgrid.com/?p=2452 You can now use the set_col_frozen() method to set the column freeze method. It’s useful when working with a big table with many columns. The freezing column must start from the very left and then one by one to the right. 12345678// Always include namespace and conf.php on TOP of the script. use phpCtrl\C_DataGrid; require_once("/file/path/to/conf.php"); […]

The post Column Freeze appeared first on phpGrid - PHP Datagrid.

]]>
You can now use the set_col_frozen() method to set the column freeze method. It’s useful when working with a big table with many columns. The freezing column must start from the very left and then one by one to the right.

1
2
3
4
5
6
7
8
// Always include namespace and conf.php on TOP of the script.
use phpCtrl\C_DataGrid;
require_once("/file/path/to/conf.php");  

$dg = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");
$dg->set_dimension(600, 400, false);
$dg->set_col_frozen('orderNumber');
$dg -> display();

Note that it is recommended to set text not to wrap with CSS “nowrap”. See http://phpgrid.uservoice.com/knowledgebase/articles/154972

See Live Example!

The post Column Freeze appeared first on phpGrid - PHP Datagrid.

]]>
2452
set_col_frozen() https://phpgrid.com/documentation/set_col_frozen/ Sat, 20 Apr 2013 04:55:43 +0000 http://phpgrid.com/?p=2449 Parameter(s): $col_name: Column name Description: Similar to Excel column freeze, phpGrid can now freeze column(s) Remark: Note that the frozen columns should be from left to right, one after other. In inline edit, the frozen columns are not editable. Columns are not draggable if any column is frozen Example: 12// freeze both customer_id and customer_name […]

The post set_col_frozen() appeared first on phpGrid - PHP Datagrid.

]]>
  • Parameter(s):
    • $col_name: Column name
  • Description:
    • Similar to Excel column freeze, phpGrid can now freeze column(s)
  • Remark:
    • Note that the frozen columns should be from left to right, one after other.
    • In inline edit, the frozen columns are not editable.
    • Columns are not draggable if any column is frozen
  • Example:
  • 1
    2
    // freeze both customer_id and customer_name columns
    $dg -> set_col_frozen("customer_id")->set_col_frozen("customer_name"):

    The post set_col_frozen() appeared first on phpGrid - PHP Datagrid.

    ]]>
    2449