Results 1 to 5 of 5

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha Premium Member
    Join Date
    Dec 2008
    Location
    Munich, Germany
    Posts
    183
    Vote Rating
    0
      0  

    Default [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
      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
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      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
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      0  

    Default

    Fixed in SVN.

  5. #5
    Sencha Premium Member varsos's Avatar
    Join Date
    Feb 2008
    Location
    Long Island, NY
    Posts
    361
    Vote Rating
    16
      0  

    Default

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

Posting Permissions

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