EasyUI Forum
April 27, 2024, 07:21:55 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: Add datebox to edatagrid  (Read 11121 times)
markalves
Newbie
*
Posts: 15


View Profile
« on: June 21, 2013, 02:56:05 PM »

Hi everyone!!!
I'm tryiing to add a datebox in a column of a edatagrid without success:
This is the code:
<th field="dal" width="15"  editor="{type:'text',class:'easyui-datebox'}">Dalla Data</th>
What is wrong ?
Bye
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 23, 2013, 05:51:01 AM »

Please try this.
Code:
<th field="dal" width="15"  editor="datebox">Dalla Data</th>
Logged
markalves
Newbie
*
Posts: 15


View Profile
« Reply #2 on: June 24, 2013, 04:36:19 AM »

Hi stworthy, thank you for the help, but it does not work, putting editor="datebox" when I try to edit the field other columns become white and not datebox is displayed.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: June 24, 2013, 05:41:42 AM »

Please refer to this example http://jsfiddle.net/eFUHn/.
Logged
markalves
Newbie
*
Posts: 15


View Profile
« Reply #4 on: June 24, 2013, 06:27:58 AM »

Ok perfect   Smiley, but if I would like to use this date format: dd/mm/yyyy ?
Logged
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!