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
    Posts
    34
    Vote Rating
    0
    gordonk66 is on a distinguished road

      0  

    Default ExtJS 4.1.0 suppressEvent is not respected in CheckboxModel.onSelectChange

    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.

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

    Code:
    Ext.require( [
    	'Ext.selection.CheckboxModel'
    ]);
    
    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() === this.store.getCount();
            this.toggleUiHeader(hdSelectStatus);
        }
    })
    Last edited by gordonk66; 10 Jun 2011 at 9:40 AM. Reason: Issue has been fixed

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar