EasyUI Forum
September 16, 2025, 02:39:33 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid datetimebox in column  (Read 10292 times)
vinnie123
Newbie
*
Posts: 1


View Profile
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 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 ;-)
Logged

-- Licensed User --
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!