Threaded View

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2010
    Vote Rating
    gordonk66 is on a distinguished road


    Default ExtJS 4.1.0 suppressEvent is not respected in CheckboxModel.onSelectChange

    Edit: Fixed in 4.0.2

    The onSelectChange function in the checkbox model class needs to be updated to include the third parameter suppressEvent.

    I found this when listening to the beforeload event of a grid store that has a checkbox selection model.

    store.on('beforeload', function(store, operation, options) {
    // Clear all the grid selections and suppress the deselect event.
    I overrode the checkbox model adding the missing param where need and now things work as expected.

    Ext.require( [
    Ext.selection.CheckboxModel.override( {
         * Synchronize header checker value as selection changes.
         * @private
        onSelectChange: function(record, isSelected, suppressEvent) {
            this.callParent([record, isSelected, suppressEvent]);
            // check to see if all records are selected
            var hdSelectStatus = this.selected.getCount() ===;
    Last edited by gordonk66; 10 Jun 2011 at 9:40 AM. Reason: Issue has been fixed