877-GRID-666 24/7 online support 604, Tower A, New Trade Plaza, N.T., Hong Kong

set_sortname()

  • 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');