EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: markalves on June 21, 2013, 02:56:05 PM



Title: Add datebox to edatagrid
Post by: markalves 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


Title: Re: Add datebox to edatagrid
Post by: stworthy on June 23, 2013, 05:51:01 AM
Please try this.
Code:
<th field="dal" width="15"  editor="datebox">Dalla Data</th>


Title: Re: Add datebox to edatagrid
Post by: markalves 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.


Title: Re: Add datebox to edatagrid
Post by: stworthy on June 24, 2013, 05:41:42 AM
Please refer to this example http://jsfiddle.net/eFUHn/.


Title: Re: Add datebox to edatagrid
Post by: markalves on June 24, 2013, 06:27:58 AM
Ok perfect   :), but if I would like to use this date format: dd/mm/yyyy ?