1. #1
    Sencha User
    Join Date
    Sep 2009
    Posts
    10
    Vote Rating
    0
    nagavasantha is on a distinguished road

      0  

    Default Unanswered: CheckboxSelectionModel Header Select All Issue

    Unanswered: CheckboxSelectionModel Header Select All Issue


    I have a grid with CheckBoxSelectionModel. Selecting the header checkbox checks all the records and deselecting the checkbox unchecks all the records, of course which is the behavior.

    I have a tree also in the same panel to the left side, and when I traverse the nodes in the tree, the grid gets updated with the new set of records.
    But, the checkbox selection in the column header still remains as checked and not able to uncheck the selection in the header. Needs a page refresh to get it unchecked.

    Any help will be appreciated.
    Thanks!

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,866
    Answers
    652
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    This as been reported: EXTJSIV-6075

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    1
    Vote Rating
    1
    smasam is on a distinguished road

      1  

    Default


    All,

    I faced the same issue. I used below override to overcome the issue.

    Ext.override(Ext.selection.CheckboxModel, {

    bindComponent: function(view) {
    var me = this;
    me.callOverridden(arguments);
    if (!me.hasLockedHeader() || view.headerCt.lockedCt) {
    me.mon(view.ownerCt.getStore(), 'load', me.deselectHeaderCheckbox, me);
    }
    },


    deselectHeaderCheckbox: function() {
    this.toggleUiHeader(false);
    }
    });


    Regards
    Srinivas Masam

Thread Participants: 2