Jump to content

Asiaapollo

Members
  • Posts

    58
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Asiaapollo

  1. Hi Farshad Mohajeri,

     

    In TuniDBGrid, is it possible to start cell editing when key pressed? I found some related post in below url:

    http://forums.ext.net/showthread.php?17515-CLOSED-GridPanel-start-cell-editing-when-key-pressed

     

    When I put below code in ClientEvents.ExtEvents, it doesn't work!

     

    function OnKeydown(e)
    {
     var me = this,
     grid = me.grid,
     selModel = grid.getSelectionModel(),
     record,
     char = String.fromCharCode(e.getKey());
    
     pos = selModel.getCurrentPosition();
     record = grid.store.getAt(pos.row); 
     columnHeader = grid.headerCt.getHeaderAtIndex(pos.column);
     me.startEdit(record, columnHeader);
     record[columnHeader.dataIndex] = char;
     Ext.Function.defer(function () {   
       columnHeader.getEditor().field.fireKey(e.RIGHT);  
     },50);
    }

  2. Hi,

     

    I am encountering same problem, as I would like to skip hidden columns when user use arrow keys to navigate in UniDBGrid. If anyone know how to skip in client side will be even better.

×
×
  • Create New...