Page 74 of 84 FirstFirst ... 24647273747576 ... LastLast
Results 731 to 740 of 837

Thread: [new version] DateTime Field

  1. #731
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    The plain DateField also returns Date object if you call getFieldValues() on the containing form. DateTime is consistent with this behavior. getFieldValues() loops through all underlying fields and calls their getValue() methods to build the return object.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  2. #732

    Default

    I see Datepicker not showing up when I migrated code from Ext 2.x to 3.x. Is there any change in the code for that ?

  3. #733
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    Is your path in Ext.BLANK_IMAGE_URL still valid?
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  4. #734

    Default

    Yes, blank_image_url is still a valid path.

  5. #735
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    I cannot reproduce it - a form with DateTime run against ext-3.2.2 just shows correct. If your problem persists post a working showcase.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  6. #736
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    487

    Default

    Got an issue with the control. If I load the details of a JsonStore into a form containing this control, like so:

    Code:
    myWin.findByType(Ext.form.FormPanel)[0].getForm().load({url : '/my/url/', params : { id : myId} }, waitMsg:'Loading...', success : doSomethingElse});
    ...while the controls load in the data perfectly in FF, they're blank in Chrome.

    Anyone else had this problem?

    EDIT : Seems it could actually be the JsonStore. If I DON'T specify type='date' on the field in question, the JsonStore has a date in it in Chrome. If I DO specify the type, the JsonStore has a null in it for the date field. Any ideas why? Does Ext have an issue with date formats in Chrome?

  7. #737

    Default

    Thanks Saki, I was able to resolve this one. Its nothing to do with the plugin, but I had an override on Menu which caused the problem. Sorry for the wrong post

  8. #738
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    @Jangla, type should be date and configured date format must match the format delivered from the server. Date is quite picky about that.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  9. #739

    Default setReadOnly functionality missing

    I needed to allow for having the datetime field to be readonly dynamically, so I patched in:

    ,setReadOnly : function(readOnly){
    this.df.setReadOnly(readOnly);
    this.tf.setReadOnly(readOnly);
    this.readOnly = readOnly;
    }

    and in the onRender()
    if (this.readOnly) {
    this.setReadOnly(true);
    }

  10. #740

    Default

    hello,

    when i change in a EditorGrid only the Time (with the ENTER-Key), the store do not update the record.

    Code:
    PHP Code:
    {    
        
    header        'Datum - Zeit',    
        
    width        120,    
        
    dataIndex    'date',    
        
    xtype        'datecolumn',    
        
    format        'd.m.Y H:i:s',    
        
    filterable     true,    
        
    filter        : {type'date'dateFormat'd.m.Y H:i:s'},    
        
    editor        : new Ext.ux.form.DateTime({    
            
    dateFormat         'd.m.Y',    
            
    timeFormat         'H:i:s',    
            
    timePosition     'below',    
            
    otherToNow        false,    
            
    timeConfig        : {    
                
    format    'H:i:s',    
                
    allowBlankfalse    
            
    },    
            
    dateConfig        : {    
                
    format        'd.m.Y',    
                
    allowBlank    false    
            
    }    
        })    


Page 74 of 84 FirstFirst ... 24647273747576 ... LastLast

Posting Permissions

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