Results 1 to 2 of 2

Thread: [4.1 RC1] Timefield in grid with CellEditing clears value

    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
    Vote Rating

    Default [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
    • 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:
    Ext.define('', {
        proxy: {
            type: 'memory',
            reader: {
                type: 'json'
        fields: [{
                name: 'Vital-id',
                name: 'Vital-time',
                type: 'date',
                dateFormat: 'H:i'
        data: [{
    Ext.define('App.view.Records.VitalGrid', {
        extend: 'Ext.grid.Panel',
        selType: 'rowmodel',
        initComponent: function() {
            var me = this;
   = Ext.create('');
            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

    • Part1 before focus
    • Part2 after focus
    Operating System:
    • Ubuntu
    Attached Images Attached Images

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    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.

Posting Permissions

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