sort Archives | phpGrid - PHP Datagrid Create PHP grids in minutes, not hours. Fri, 06 Dec 2024 03:59:28 +0000 en-US hourly 1 CodeProjecthttps://wordpress.org/?v=7.0.3 129966043 Column Chooser & Sortable Row https://phpgrid.com/example/column-chooser-sortable-row/ Thu, 17 Oct 2013 19:33:57 +0000 http://phpgrid.com/?p=2658 The example below demonstrates column chooser and sortable row features. Click on the column chooser icon in the footbar to reveal the column chooser dialog. To test sortable row, drag a row and move it around. 1234567891011// 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 […]

The post Column Chooser & Sortable Row appeared first on phpGrid - PHP Datagrid.

]]>
The example below demonstrates column chooser and sortable row features. Click on the column chooser icon in the footbar to reveal the column chooser dialog. To test sortable row, drag a row and move it around.

1
2
3
4
5
6
7
8
9
10
11
// 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 products", "productCode", "products");

$dg -> enable_columnchooser(true);
$dg -> set_sortablerow(true);

$dg -> display();

See Live Example!

The post Column Chooser & Sortable Row appeared first on phpGrid - PHP Datagrid.

]]>
2658
set_sortablerow() https://phpgrid.com/documentation/set_sortablerow/ Sat, 12 Oct 2013 18:17:47 +0000 http://phpgrid.com/?p=2622 Parameters: $sortable: true or false Description: Activate sortable row. Drag and drop row to sort. Remark: The sort does not persist. The sort is lost the grid or the page refreshes. Example: 1$dg -> set_sortablerow(true);

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

]]>
  • Parameters:
    • $sortable: true or false
  • Description:
    • Activate sortable row. Drag and drop row to sort.
  • Remark:
    • The sort does not persist. The sort is lost the grid or the page refreshes.
  • Example:
  • 1
    $dg -> set_sortablerow(true);

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

    ]]>
    2622
    set_sortname() https://phpgrid.com/documentation/set_sortname/ Wed, 15 Sep 2010 19:25:16 +0000 http://64.38.236.7/?p=466 Parameter(s): $col_name: Column name to sort $sort_order: ‘ASC’ or ‘DESC’. Default value is ‘ASC’  (version 4.4+) Description: Set column sort by and sort order when datagrid is initially loaded. Example: 1$dg -> set_sortname('productName', 'DESC');

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

    ]]>
  • Parameter(s):
    • $col_name: Column name to sort
    • $sort_order: ‘ASC’ or ‘DESC’. Default value is ‘ASC’  (version 4.4+)
  • Description:
    • Set column sort by and sort order when datagrid is initially loaded.
  • Example:
  • 1
    $dg -> set_sortname('productName', 'DESC');

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

    ]]>
    466