Results 1 to 9 of 9

Thread: ExtJS 4.1.0 suppressEvent is not respected in CheckboxModel.onSelectChange

Threaded View

Previous Post Previous Post   Next Post Next Post
    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

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts