1. #1
    Sencha User
    Join Date
    Apr 2009
    Posts
    25
    Vote Rating
    0
    Matt Kleweno is on a distinguished road

      0  

    Default EditorGrid setting tab Order on cells

    EditorGrid setting tab Order on cells


    I have an editorGrid in which i want to set the tab order on the cells after the grid is rendered.

    how do i do this?

    Someone posted this as an ExtJS solution...but I don't know how to translate it to EXT GWT.

    Code:
    onEditorKey : function(field, e){         
    var k = e.getKey(), newCell, g = this.grid, ed = g.activeEditor;
    if(k == e.TAB){            
       if(e.shiftKey){                 
          newCell = g.walkCells(ed.row, ed.col-1, -1, this.acceptsNav, this);
       }else{                 
          newCell = g.walkCells(ed.row, ed.col+1, 1, this.acceptsNav, this);
       }             
       e.stopEvent();         
    }else if(k == e.ENTER){             
       ed.completeEdit();             
       e.stopEvent();
    }else if(k == e.ESC){             
       e.stopEvent();             
       ed.cancelEdit();         
    }         
    
    if(newCell){             
       g.startEditing(newCell[0], newCell[1]);         
    }     
    }

  2. #2
    Ext User
    Join Date
    Oct 2008
    Location
    Atlanta ,GA
    Posts
    239
    Vote Rating
    0
    kolli is on a distinguished road

      0  

    Default


    tab order is the same as the cells in the editor grid.
    Like it starts from the first editable cell and go along all the editable columns and then goes to the next row.

  3. #3
    Sencha User
    Join Date
    Apr 2009
    Posts
    25
    Vote Rating
    0
    Matt Kleweno is on a distinguished road

      0  

    Default


    I agree that is how the tab order works by default. I want to be able to skip over some editable columns in the tab order but still have them editable if someone clicks on the cell itself.

  4. #4
    Ext User
    Join Date
    Oct 2008
    Location
    Atlanta ,GA
    Posts
    239
    Vote Rating
    0
    kolli is on a distinguished road

      0  

    Default


    you can try setting the tab order for the editor fields. If that doesnot work.. my guess is to set the cell selection manually and start editing , each time you encounter a cell you want to skip.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi