EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: vinnie123 on March 06, 2013, 08:42:05 AM



Title: datagrid datetimebox in column
Post by: vinnie123 on March 06, 2013, 08:42:05 AM
Hi,

Does anyone have a sample of how to add a datetimebox to a column in a datagrid?

Thanks.


Title: Re: datagrid datetimebox in column
Post by: stworthy on March 06, 2013, 07:01:25 PM
To use datetimebox as the editor when editing a row, you need to extend the new editor for datagrid. Please refer to http://www.jeasyui.com/documentation/datagrid.php#editor to learn how to extend a new editor.


Title: Re: datagrid datetimebox in column
Post by: devnull on March 06, 2013, 09:58:27 PM
It is as simple as this:

Code:
{field:'followup_date',title:'Followup Date',editor:'datebox'}

But you should be able to determine that from the online documentation / demos etc ;-)