timepicker Archives | phpGrid - PHP Datagrid Create PHP grids in minutes, not hours. Mon, 23 Mar 2020 21:43:16 +0000 en-US hourly 1 CodeProjecthttps://wordpress.org/?v=7.0.3 129966043 set_col_time() * https://phpgrid.com/documentation/set_col_time/ Wed, 02 May 2018 04:58:30 +0000 http://phpgrid.com/?p=9434

* Note that currently it is not supported in the Lite and Basic edition. Set the edit type to be time and enable the time-picker 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. 12$pg->set_col_property("time_from",         […]

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

]]>

* Note that currently it is not supported in the Lite and Basic edition.

Set the edit type to be time and enable the time-picker

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")))

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

]]>
9434
Timepicker Only Support https://phpgrid.com/example/timepicker-only-support/ Tue, 24 Apr 2018 19:01:56 +0000 http://phpgrid.com/?p=9427

phpGrid now has standalone time-picker support using set_col_time() method. Only the table fields that have TIME type are applicable. For non-TIME types, it will display the regular datetime picker. For database has no TIME type support, you can use Sql Datetime type and choose to show time only 12345// Display TIME. Requires column with SQL […]

The post Timepicker Only Support appeared first on phpGrid - PHP Datagrid.

]]>

phpGrid now has standalone time-picker support using set_col_time() method. Only the table fields that have TIME type are applicable. For non-TIME types, it will display the regular datetime picker. For database has no TIME type support, you can use Sql Datetime type and choose to show time only

1
2
3
4
5
// Display TIME. Requires column with SQL Time data type.
// For database has no TIME type support, you can use Sql Datetime type and choose to show time only
$dg -> set_col_time('logTime')->set_col_property("logTime",
            array("formatter"=>"date",
                "formatoptions"=>array("srcformat"=>"h:i A","newformat"=>"h:i A")));

In live demo, edit the “logTime” field to activate the timepicker.

See Live demo!

The post Timepicker Only Support appeared first on phpGrid - PHP Datagrid.

]]>
9427