Default Value Archives | phpGrid - PHP Datagrid Create PHP grids in minutes, not hours. Wed, 14 Apr 2021 05:21:16 +0000 en-US hourly 1 CodeProjecthttps://wordpress.org/?v=7.0.3 129966043 set_col_default() https://phpgrid.com/documentation/set_col_default/ Sun, 08 Apr 2012 04:03:12 +0000 http://phpgrid.com/?p=2041 Parameters: $col_name: column name $default: column default value Description: Set column default value This option is only valid for Form Editing when adding a new record. Users can override this entry. Remark: To set the default value for edit existing records, use beforeEditRow event.  Be sure to set default only when the value is blank otherwise any populated […]

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

]]>
  • Parameters:
    • $col_name: column name
    • $default: column default value
  • Description:
    • Set column default value This option is only valid for Form Editing when adding a new record. Users can override this entry.
  • Remark:
    • To set the default value for edit existing records, use beforeEditRow event.  Be sure to set default only when the value is blank otherwise any populated values entered by users would be overwritten.
  • Example:
  • 1
    2
    $dg -> set_col_default('direction', 'top');
    $dg -> set_col_default('dateField',  date("Y-m-d H:m"));

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

    ]]>
    2041