Results 1 to 3 of 3

Thread: Extjs 3.4 checkchange listener not working on Checkcolumn

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Sep 2013
    Location
    Italy
    Posts
    19

    Default Extjs 3.4 checkchange listener not working on Checkcolumn

    1) checkchange listener not working:

    Code:
    {
    
      xtype      : 'checkcolumn',
      header     : 'IsVisibile',
      dataIndex  : 'isvisible',
      width      : 50,
      sortable   : true,
      align      : 'left',
      listeners: {      checkchange:function(_this,checked){         alert("checked");}}
    }

    2) Use the file CheckColumn.js (attached)

    Code:
    ...
    
    grid.on('checkchange', handleCellColumnClick);.../** handleCellColumnClick
     * 
     * @param grid
     * @param checked
     * @param rowIndex
     * @param colIndex
     */
    function handleCellColumnClick( grid, checked, rowIndex, colIndex )
    {
         if (colIndex > 0) {
    	var record = grid.getStore().getAt(rowIndex),
    	    fieldName = grid.getColumnModel().getDataIndex(colIndex), // Get field name
    	    value = record.get(fieldName);
            
    		doSave(record, 1);
         }	
    }
    ...
    Attached Files Attached Files

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. I couldn't find an existing ticket for this issue. Can you please post a test case which reproduces the issue you are seeing?
    https://fiddle.sencha.com/#home

  3. #3
    Sencha User
    Join Date
    Sep 2013
    Location
    Italy
    Posts
    19

    Default fiddle

    Quote Originally Posted by Gary Schlosberg View Post
    Thanks for the report. I couldn't find an existing ticket for this issue. Can you please post a test case which reproduces the issue you are seeing?
    https://fiddle.sencha.com/#home
    This is the fiddle:
    https://fiddle.sencha.com/#fiddle/ni0

    The fiddle does not work for versions 3.x.x.
    I am attaching the page Checkcolumn.html which reproducing the case.
    Attached Files Attached Files

Similar Threads

  1. How do I add a listener to a CheckColumn?
    By dkgemini in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 12 Apr 2018, 12:31 AM
  2. Replies: 4
    Last Post: 17 Jun 2016, 2:17 PM
  3. Extjs 5 listener stop working
    By Hazio in forum Ext 5: Q&A
    Replies: 1
    Last Post: 23 Feb 2015, 5:25 AM
  4. checkcolumn action checkchange
    By slawek in forum Ext: Q&A
    Replies: 2
    Last Post: 17 Apr 2014, 3:52 PM

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
  •