1
votes

My Extjs checkcolumn view

enter image description here

My code snippet

            columns: [{
                xtype: 'treecolumn',
                header: 'Name'
            }, {
                xtype: 'checkcolumn',
                header: 'Check',

                listeners: {
                    checkchange: function(node, checked, eOpts) {
                        // console.warn(JR.app.globalObj.treeNodeSet);
                        console.info(node);
                    }
                }
            }]

In checkcolumn listeners

listeners: {
    checkchange: function(node, checked, eOpts) {
        console.info(node);
        // NO IDEA which node was checked
    }
}

No idea which node was checked, How can I do ?

1

1 Answers

0
votes

You have put the grid's checkchange listener onto the column. Either you use checkchange:function(column, rowIndex, checked, eOpts) on the column and then get the record via the rowIndex, or you put the checkchange: function(node, checked, eOpts) listener on the grid, not the column. (Note that this does fire for every checkchange in every checkcolumn).