Results 1 to 2 of 2

Thread: checkbox inside Ext.grid.EditorGridPanel (click once to trigger afteredit event)

  1. #1
    Sencha User
    Join Date
    Nov 2015
    Vote Rating

    Default checkbox inside Ext.grid.EditorGridPanel (click once to trigger afteredit event)

    I have a checkbox column inside Ext.grid.EditorGridPanel configured like this:

    {            id:'event-type-grid-enabled-checkbox',            header:"Enabled",            dataIndex:"enabled",            sortable:true,            clicksToEdit:1,            editor:{                xtype:'checkbox',                name:'enabled'},            renderer:function(val){return"<input type='checkbox'"+(val ?"checked='checked'":"")+">";}}

    I want to be able to trigger the afteredit event of EditorGridPanel when user checks/unchecks the checkbox. There are other columns (textfields) beside checkbox column and user can double click and edit and they work perfectly fine, afteredit gets triggered and ajax call is made to update data and so on...

    when i double click the checkbox then afteredit is triggered (which is technically right but not normal for a checkbox)

    I tried clicksToEdit: 1 for the checkbox object but it doesn't seem to help.

    I'm new to ExtJS and i'm working on an existing mature project which uses ExtJS version 3.2.1


  2. #2
    Sencha User
    Join Date
    Feb 2013
    Vote Rating


    It doesn't look like a checkbox has the afteredit event. Here's a related thread, which seems to have a solution on the third page.

    Perhaps it can be made to work with Ext JS 3.x.

Similar Threads

  1. Replies: 3
    Last Post: 14 Sep 2011, 5:50 AM
  2. Ext.grid.EditorGridPanel afteredit event or alternative
    By blackcat in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 5 Nov 2010, 7:20 AM
  3. ComboBox selection to cause EditorGridPanel afteredit event
    By Chief Vas in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 26 Nov 2009, 4:55 PM
  4. Override 'afteredit' event on EditorGridPanel
    By rendianmendian in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 24 Apr 2008, 1:55 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