Results 1 to 2 of 2

Thread: Grid: click non-editable cell then performing TAB does not focus next grid cell

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2014
    Posts
    6
    Answers
    1

    Default Answered: Grid: click non-editable cell then performing TAB does not focus next grid cell

    Hi All,

    Any ideas how to support tabbing from a non-editable cell in a column to the next cell in the same row? For example, given the code below, the user clicks on a non-editable cell in the first row 2nd column and then performs a TAB. I would like the focus to goto the first row 3rd column.

    Any suggestions of how to support this would be greatly appreciated!

    thanks! dean.

    Code:
    Ext.create('Ext.data.Store', {
        storeId: 'simpsonsStore',
        fields:[ 'name', 'email', 'phone'],
        data: [
            { name: 'Lisa', email: '[email protected]', phone: '555-111-1224' },
            { name: 'Bart', email: '[email protected]', phone: '555-222-1234' },
            { name: 'Homer', email: '[email protected]', phone: '555-222-1244' },
            { name: 'Marge', email: '[email protected]', phone: '555-222-1254' }
        ]
    });
    
    
    Ext.create('Ext.grid.Panel', {
        title: 'Simpsons',
        store: Ext.data.StoreManager.lookup('simpsonsStore'),
        columns: [
            {header: 'Name', dataIndex: 'name', editor: 'textfield'},
            {header: 'Email', dataIndex: 'email', flex:1 },
            {header: 'Phone', dataIndex: 'phone', editor: 'textfield'}
        ],
        selModel: 'cellmodel',
        plugins: {
            ptype: 'cellediting',
            clicksToEdit: 1
        },
        height: 200,
        width: 400,
        renderTo: Ext.getBody()
    });

  2. Figured it out. Need to override NavigationModel.onKeyTab()

    thanks ,dean.

  3. #2
    Sencha Premium Member
    Join Date
    Aug 2014
    Posts
    6
    Answers
    1

    Default

    Figured it out. Need to override NavigationModel.onKeyTab()

    thanks ,dean.

Similar Threads

  1. Grid cell defaulting to old value on cell click
    By Roger_John in forum Ext 5: Q&A
    Replies: 1
    Last Post: 6 Feb 2015, 1:43 PM
  2. Focus next cell after edit current cell in grid
    By inventum in forum Sencha Ext JS Q&A
    Replies: 1
    Last Post: 22 Aug 2013, 5:39 AM
  3. Replies: 2
    Last Post: 27 Nov 2012, 1:22 AM
  4. setting focus back to a cell of the editable grid
    By emmas in forum Ext GWT: Discussion
    Replies: 7
    Last Post: 13 Jun 2011, 10:31 AM
  5. Help: highlight cell value on grid cell click
    By gkassyou in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 7 Jan 2008, 11:40 AM

Tags for this Thread

Posting Permissions

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