Results 1 to 2 of 2

Thread: datefield value problem

  1. #1
    Sencha Premium Member teddyjas's Avatar
    Join Date
    Dec 2007
    Location
    Singapore
    Posts
    262

    Default datefield value problem

    Hi,

    I have a container, which has an item as follows:
    Code:
                        {xtype:'container',layout:'column',style:'padding-top:4px;',defaults:{xtype:'container',style:'padding-right:10px;',layout:'form'},items:[
                            {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

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Must be a bug in DateField.

    Tried it using 3.2 beta or 3.1.1?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •