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

set_col_time()

Set the edit type to be time and enable the time-picker (Note: not available in the Lite edition.).

1
$dg -> set_col_time("time_from");

It is recommended to also use the formatter function so that the time is set in the right value during the edit.

1
2
$pg->set_col_property("time_from",
            array("formatter"=>"date", "formatoptions"=>array("srcformat"=>"h:i A","newformat"=>"h:i A")))