1. #1
    Sencha User
    Join Date
    Nov 2015
    Posts
    1
    Vote Rating
    0
    ahraza is on a distinguished road

      0  

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

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

    Code:
    {            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


    Thanks

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    9,268
    Vote Rating
    252
    Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of

      0  

    Default

    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.
    https://www.sencha.com/forum/showthread.php?27161
    https://www.sencha.com/forum/showthr...27161/page3#21

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


    Join me at SenchaCon 2016!

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

Thread Participants: 1

Tags for this Thread