Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to catch Tab key press event in Ext JS 3 grid
    primarykey
    data
    text
    <p>I try to catch Tab key press event. This is what I tried:</p> <pre><code>this.test.on('keypress', function(t,e) { if (e.getKey() == Ext.EventObject.ENTER) { alet('kk'); } }, this); </code></pre> <p>Please help to catch Tab key press event in the grid cells.</p> <pre><code>This my EditorGridPanel override function Ext.override(Ext.grid.EditorGridPanel, { initEvents : function(){ Ext.grid.EditorGridPanel.superclass.initEvents.call(this); this.on("bodyscroll", this.stopEditing, this, [true]); this.on("columnresize", this.stopEditing, this, [true]); this.view.scroller.on("mousedown", this.onMouseDownEditClick, this); this.on('keypress', function(t,e) { // if (e.getKey() == Ext.EventObject.TAB) { alert('kk'); // } }, this); //Reload datastore without redrawing grid this.getView().on('beforerefresh', function(view) { view.scrollTop = view.scroller.dom.scrollTop; view.scrollHeight = view.scroller.dom.scrollHeight; }); this.getView().on('refresh', function(view) { setTimeout(function () { view.scroller.dom.scrollTop = view.scrollTop + (view.scrollTop == 0 ? 0 : view.scroller.dom.scrollHeight - view.scrollHeight); }, 100); }); if(this.clicksToEdit == 'mousedown'){ this.view.scroller.on("mousedown", this.onMouseDownEditClick, this); }else if(this.clicksToEdit == 1){ this.on("cellclick", this.onCellDblClick, this); }else { if(this.clicksToEdit == 'auto' &amp;&amp; this.view.mainBody){ this.view.mainBody.on("mousedown", this.onAutoEditClick, this); } this.on("celldblclick", this.onCellDblClick, this); } }, onMouseDownEditClick : function(e, t){ if(e.button !== 0){ return; } var row = this.view.findRowIndex(t); var col = this.view.findCellIndex(t); edit_row = row; edit_col = col; if(row !== false &amp;&amp; col !== false){ this.startEditing(row, col); } } }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload