1. #1
    Sencha User
    Join Date
    Dec 2009
    Posts
    57
    Vote Rating
    0
    toole1 is on a distinguished road

      0  

    Default Unanswered: When tabbing in Celling Editing Grid Skip Action column

    Unanswered: When tabbing in Celling Editing Grid Skip Action column


    I setup a grid through architect, similar to the example "Cell Editing Grid Example", but when I tab from an editable column to the next column and that column is the action column, it highlights the action column instead of skipping to the next editable column. Is there some trick to this I am missing? I looked at the source cell-editing.js and I can't figure out what make the tab skip over the action column.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Answers
    3542
    Vote Rating
    846
    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


    What Ext JS 4 version are you using? In 4.1 it should skip over the action column.
    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.

  3. #3
    Sencha User
    Join Date
    Dec 2009
    Posts
    57
    Vote Rating
    0
    toole1 is on a distinguished road

      0  

    Default


    4.0.7

    The vendor we use to license ExtJS is still on 4.0.7 not 4.1 yet.

  4. #4
    Ext Premium Member yyogev's Avatar
    Join Date
    Jun 2009
    Location
    Shoham, Israel
    Posts
    196
    Answers
    5
    Vote Rating
    6
    yyogev is on a distinguished road

      0  

    Exclamation Doesn't work in 4.1.1

    Doesn't work in 4.1.1


    Hi,

    The code in the cell editor plugin handles the tab by looking for the next editable field, so the action column is skipped. In my grid, the action column is rightmost, so the tab from the field to its left jumps to the first column on the following row.
    This looks like a bug to me.

    Code:
    
    onEditorTab: function(editingPlugin, e) {       
      var me = this,
                view = me.views[0],
                record = editingPlugin.getActiveRecord(),
                header = editingPlugin.getActiveColumn(),
                position = view.getPosition(record, header),
                direction = e.shiftKey ? 'left' : 'right';
    
    
       do {
                position  = view.walkCells(position, direction, e, me.preventWrap);
      } while(position && !view.headerCt.getHeaderAtIndex(position.column).getEditor());
    
      if (position) {
                editingPlugin.startEditByPosition(position);
      }
        
    },
    Last edited by yyogev; 16 Jul 2012 at 3:54 AM. Reason: reformat code
    Yaron Yogev

    IT Software Developer

  5. #5
    Sencha User
    Join Date
    Dec 2009
    Posts
    57
    Vote Rating
    0
    toole1 is on a distinguished road

      0  

    Default


    We just put on 4.1.1 from our vendor and tabbing does appear to work now.

Thread Participants: 2