View Full Version : datefield value problem

10 Mar 2010, 7:22 PM

I have a container, which has an item as follows:

{items:{xtype:'datefield',hideLabel:true,id:'MYDATE',name:'MYDATE',format:'Y-m-d',value:new Date(),allowBlank:false}},
{width:200,items:{xtype:'button',width:'100%',cls:'gen_bol',text:'SET DATE'}}

the datefield above does not show the current today's date.
Even if I use like Ext.getCmp('MYDATE').setValue(new Date()); the component does not show the value in there... but I use the getValue() then I can get the correct value, its just not displaying the value there...

If i use the picker to select date then its working fine, there's no error in firebug at all.

I'm still using Ext 3.0.1 :>

10 Mar 2010, 10:30 PM
Must be a bug in DateField.

Tried it using 3.2 beta or 3.1.1?