Search code examples
checkboxgridlistenercellgxt

GXT Grid with multiple CheckBoxCell with listener


I'm using GXT 3.0 and have a Grid with multiple checkboxes each row. These checkboxes reflect certain properties of my row data and checkin/unchecking does not implies selecting/unselecting the particular row. How can I add a listener to each checkbox and perform some action upon clicking it?


Solution

  • I override the handlesSelection() method to capture the check/uncheck event

    CheckBoxCell checkCol = new CheckBoxCell() {
        @Override
        public boolean handlesSelection() {
            //TODO: 
            return true;
        }
    };