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