Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7645295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:54:19+00:00 2026-05-31T09:54:19+00:00

im using extjs 4.0 and am trying to combine an editable grid with a

  • 0

im using extjs 4.0 and am trying to combine an editable grid with a checkbox selection model.
Problem is when i click on the checkbox i get this error message

Uncaught TypeError: Object [object Object] has no method 'getEditor'

its clear to me that the checkbox column isn´t supposed to be edited (in the cellediting plugin way) so there’s no getEditor function.

i tried defining a beforeedit listener on CellEditing component that skips edition for colIdx = 0 but it doesn´t even get called because the error occurs just before this happens, on the startEditByClick method.

So, my question is, should I:

a) define a getEditor NO-OP function and bind it to the first column? i don´t know if this is even possible

b) define a listener to skip edition when colIdx = 0 that fires before the startEditByClick function gets called? on what event of what component would this be?

c) ignore javascript errors as long as it works (:P)

here´s some code

var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
    clicksToEdit: 1
});

Ext.define('RPV.view.aviso.AvisosList', {
    extend: 'Ext.grid.Panel',
    store: 'AvisosStore',

    selModel: Ext.create('Ext.selection.CheckboxModel'),
    plugins: [cellEditing],

    initComponent: function () {
        this.columns = [{
            header: 'NIV',
            dataIndex: 'niv',
            flex: 1,
            editable: false
        }, {
            header: 'NCI',
            dataIndex: 'nci',
            flex: 1,
            editable: false
        }, {
            header: 'Tipo movimiento',
            dataIndex: 'tipoMovimiento',
            width: 130,
            field: {
                xtype: 'combobox',
                typeAhead: true,
                triggerAction: 'all',
                selectOnTab: true,
                store: 'TipoMovimientoStore',
                lazyRender: true,
                listClass: 'x-combo-list-small',
                mode: 'remote',
                minChars: 0,
                valueField: 'descripcion',
                displayField: 'descripcion',
                emptyText: 'No especificado'
            }
        }, {
            header: 'Observaciones',
            dataIndex: 'observacionesDwr',
            width: 130,
            field: {
                xtype: 'combobox',
                typeAhead: true,
                triggerAction: 'all',
                selectOnTab: true,
                store: 'ObservacionesStore',
                lazyRender: true,
                mode: 'remote',
                minChars: 0,
                valueField: 'descripcion',
                displayField: 'descripcion',
                autoSelect: false
            }
        }];

        this.callParent(arguments);
    }
});

UPDATE: found this link http://www.sencha.com/forum/showthread.php?137731-Using-checkbox-selection-model-in-the-editable-grid-produces-an-error&highlight=CellEditing
that says this is a bug, thats already been fixed for version 4.1.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:54:21+00:00Added an answer on May 31, 2026 at 9:54 am

    Try this

    onBeforeEditCell : function(event) {        
            if (event.column && event.column.isCheckerHd) {
                return false;
            } 
    
            return true;
        }
    

    http://www.sencha.com/forum/showthread.php?140253-Ext.grid.plugin.CellEditing-Ext.selection.CheckboxModel-TypeError

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a dynamic grid using ExtJS. The grid is built and
I'm using extjs and just trying to solve a simple problem: I have a
This is using the standard ExtJS 4 MVC library and structure. I am trying
i am using ExtJS with Rails...I am trying to delete records selected in grid
I'm using ExtJs and trying to change look of the default scroll-bars (for Grid
I'm trying to make data grid with paging using ExtJs framework, but unfortunately my
I'm trying out ExtJS Pivot Grid. I'm using the examples pretty much as-is from
Using ExtJs. I'm trying to design a main which is divided into three sub
I'm using ExtJS on a registration page which should have no effect on this.
This is my first bash at using extJS, and after a few hours of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.