Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Dec 2008
    Location
    Munich, Germany
    Posts
    183
    Vote Rating
    0
    Jose Jeria is an unknown quantity at this point

      0  

    Default [FIXED] Select all checkbox remains selected when paging to the next page in Grid

    [FIXED] Select all checkbox remains selected when paging to the next page in Grid


    • GWT 1.5.3
    • GXT 1.2.2
    • Windows XP
    Maybe not a bug, but still, would be nice if the framework could handle this scenario.

    When using a "Grid + CheckBoxSelectionModel + Paging":
    1. Click on the check all checkbox to select all items in Grid
    2. Navigate to the second page clicking the arrow -> in the PagingToolBar
    3. Note that the "select all" checkbox in the header remains checked
    It would be nice if the checkbox would change to unselected when the next or previous buttons are used on the PagingToolBar.

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2008
    Posts
    7
    Vote Rating
    0
    netkraft is on a distinguished road

      0  

    Default


    I got this from diffrent posting try this

    var sm = new Ext.grid.CheckboxSelectionModel({
    listeners: {
    'selectionchange': function() {
    var
    hd = Ext.fly(this.grid.getView().innerHd).child('div.x-grid3-hd-checker');
    if (this.getCount() < this.grid.getStore().getCount()) {
    hd.removeClass('x-grid3-hd-checker-on');
    } else {
    hd.addClass('x-grid3-hd-checker-on');
    }
    }
    }


    });

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I did a change to this. It now also gets selected if you select all rows and gets automatically deselected if you deselect one row. Will be in SVN soon.

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN.

  5. #5
    Sencha Premium Member varsos's Avatar
    Join Date
    Feb 2008
    Location
    Long Island, NY
    Posts
    342
    Vote Rating
    15
    varsos will become famous soon enough

      0  

    Default


    The same behavior exists in EXTJS.
    How does a nice fix like this get into EXTJS?
    varsos

Thread Participants: 3