Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2010
    Posts
    68
    Vote Rating
    2
    watermark is on a distinguished road

      0  

    Default [4.1 RC1] Timefield in grid with CellEditing clears value

    [4.1 RC1] Timefield in grid with CellEditing clears value


    Ext version tested:
    • Ext 4.1 RC1
    Browser versions tested against:
    • Chrome 17
    DOCTYPE tested against:
    • XHTML 1.0 Transitional
    Description:
    • When you're using the CellEditing plugin and a column has a editor with an xtype of timefield, the value will clear on focus. The exact same code works fine in 4.0.7.
    Steps to reproduce the problem:
    • Load json store with a field of type "date" with a dateformat of 'H:i'
    • Create a grid using the cellediting plugin
    • Select the timefield cell for editing
    The result that was expected:
    • The timevalue to be displayed in the timefield when it's selected for editing
    The result that occurs instead:
    • The value is blank
    Test Case:
    Code:
    Ext.define('App.store.Vital', {
        proxy: {
            type: 'memory',
            reader: {
                type: 'json'
            }
        },
    
    
        fields: [{
                name: 'Vital-id',
                type:'int'
            },{
                name: 'Vital-time',
                type: 'date',
                dateFormat: 'H:i'
            }
        ],
    
    
        data: [{
                'Vital-id':1,
                'Vital-time':'13:13'
            },{
                'Vital-id':2,
                'Vital-time':'14:14'
            }
        ]
    });
    
    
    Ext.define('App.view.Records.VitalGrid', {
        extend: 'Ext.grid.Panel',
        selType: 'rowmodel',
    
    
        initComponent: function() {
            var me = this;
            
            me.store = Ext.create('App.store.Vital');
    
    
            //editing
            me.rowEditing = Ext.create('Ext.grid.plugin.CellEditing');
            me.plugins = [me.rowEditing];
    
    
            //setup columns
            me.columns = [{
                    dataIndex: 'Vital-time',
                    header: 'Time',
                    xtype: 'datecolumn',
                    format: 'H:i',
                    editor: {
                        xtype: 'timefield',
                        selectOnFocus: true
                    }
                }
            ];
        }
    
    
    });
    ScreenShot:
    • Part1 before focus
    • Part2 after focus
    Operating System:
    • Ubuntu
    Attached Images

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,672
    Vote Rating
    747
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This looks to be fixed in RC2 which will be coming very soon. If you are still experiencing the issue, please post here and I can retest it on RC2 release.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar